questionmark:
--------------------------------------------------------------------------------
I have a file with some rows like
1234
2345
5678
9876
Now I want to replace this with an extra digit so the result will be:
S1234
S2345
S5678
S9876
I tried the replace function with:
Find: [0-9]{4}
Replace: S$1
And the option Regular Expressions on
But it replaces all lines with only the S and not the original part. What should
I have to get it right?
--------------------------------------------------------------------------------
Using the parentheses like ([0-9]{4}) should help (assuming the search
expression match the needed string).
$1...$n in the *replace* pattern substitute the (sub)match of the 1st...n-th
parenthesised expression of the search pattern.
vbr
--
<http://forum.pspad.com/read.php?2,53657,53662>
PSPad freeware editor http://www.pspad.com