<http://forum.pspad.com/read.php?f=6&i=3439&t=3336>
----------------------------------------------------------------
Hi!
I have simple regex question about replace using RegEx:
-- This is sample form my file --
111{TAB}Some stupid text
1111{TAB}Some stupid text
11111{TAB}Some stupid text
-- End of sample
Ok I need to convert it to Inserts with some parent categories like this:
I'm looking for expression
^(\d){3}\t
And I'm replacing using this syntax
INSERT INTO [JobCategories] ([IDJobCategory],[IDParentJobCategory],[Opis])
VALUES ('$1',ReplaceWithParent$1
But $1 contains always only 1 - not whole 111 or 112 etc - using (\d){3}
So this is probably bug in PSPad or I'm missing something ?
--
PSPad freeware editor http://www.pspad.com