TextPad regexp only allows nine back references
Posted: Wed Nov 24, 2004 5:38 pm
I have been trying to use RegExp to extract a simpler line of code out of a more complicated one.
Using the RegExp Coach to test my pattern matching this line successfully formats my code using the second, fourteenth, seventeeth and fifth groups match.
which should do something like this:
However, when I copied the pattern into the TextPad replace field I got this:
In other words it treating the second and third elements as back reference \1 plus a literal (as it happens, \1 was spaces).
So, does TextPad have this limit on the number of back references or is there some workaround?
Cheers, APC
Using the RegExp Coach to test my pattern matching this line successfully formats my code using the second, fourteenth, seventeeth and fifth groups match.
Code: Select all
ERROR.LOG(\2, \14, \17, \5);Code: Select all
ERROR.LOG('APC', 'MAIN', 'Some Text', 'E');Code: Select all
ERROR.LOG('APC', 4, 7, 'E');So, does TextPad have this limit on the number of back references or is there some workaround?
Cheers, APC