kielschwein:
--------------------------------------------------------------------------------
Hi,
I'm wondering, why non capturing submatches don't work (causing a "invalid
RegExp" error).
Is this a bug or just a missing feature?
Thanks
kielwschein
--------------------------------------------------------------------------------


Hi, there are indeed some limitations of the search and replace engine
includuing regex support.
In some cases this can be worked around by changing the pattern.
Alternatively the scripting support via WSH can be used which enables the regex
engines of the respective scripting languages.
There are some addon scripts available for this, e.g. phreplace (using
VBScript)
http://phdesign.com.au/phreplace/
(which has more adeded features and a nice gui, but there can be some
compatibility problems, and sometimes the script cannot be installed or
initialised) 

I am using my own much simpler javascript addon without a gui, just with
prompts; as a single js file, it should work once the WSH scripting is
successfully enabled.
If you are interested to try it (with no warranties...:), there is still this
rather old script:
http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html  (english info begins further
down that page) 
it works for pspad 4 and 5, in the latter version there is better unicode
support, the functionality depends on the javascript regex library.

regards,
     vbr

-- 
<https://forum.pspad.com/read.php?2,70264,70282>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem