You are here: PSPad forum > English discussion forum > Regexp with multiple line output
Posted by: nspp | Date: 2021-05-12 11:57 | IP: IP Logged
I use inside Pspad many Regular expression to Match and Replace
I have an input File like:
XC_VAR01 , XC_MA_P01
XC_VAR02 , XC_MA_P01
XC_VAR03 , XC_MA_P02
XC_VAR04 , XC_MA_P03
I do a regexp search as : ^(XC_\w+)\s*,\s*(XC_\w+)\s*$
replace: find(\n\tVin : $1\n\tVout : $2\n );\n
I search full document, and i have wrong count and the replacement does not work as expected as not all line are processed. It seems that new created line are not added to total line. Replacement always stop before to end of file....
If i add many empty lines at the end replacement process succeed (counter is false anyway)
Tested with 5.06 and latest 5.07 (620..625)
Posted by: pspad | Date: 2021-05-12 16:41 | IP: IP Logged
From the 620 new editor component was used. It looks like it doesn't contains fix I made in previous version.
Till fix, start to replace from the end with backward direction
Posted by: nspp | Date: 2021-05-16 14:28 | IP: IP Logged
This seems to be fixed in 5.0.7 beta 629.
Many thanks !