I've found some anomalous behaviour in Perl RegExs... (v12.10b)
As I read the documentation, if I search for [a-g] I should only find letters: lowercase "a" to lower case "g". If I search for [A-G], then it should only find uppercase "A" to uppercase "G". This however, seems to work ONLY if the match case option is checked... This is a bug is it not?
Can anyone confirm this?
Also, if the match is as [A-G] with the match case option checked, the find will work correctly (say using F3). However, if you want to check that the find worked using "Highlight all items found" then the wrong items are highlighted.
Can anyone confirm this behaviour?
If confirmed I'll report it...
Example failing RegEx:
Replace: (((?:)|[(glu])[bcigors])w([A-Z][A-Z_0-9]+)
with: \1_\L\3
will convert: gswHELLO_THERE to gs_hello_there
I've found some more anomalous behaviour in Perl RegExs... (v12.10b)
If I use the Perl RegEx above that works with a replace on the current file, it WON'T work if I scope it to "Open Files".
Can anyone confirm this too?
If confirmed I'll report it...
TIA,
Paolo
As I read the documentation, if I search for [a-g] I should only find letters: lowercase "a" to lower case "g". If I search for [A-G], then it should only find uppercase "A" to uppercase "G". This however, seems to work ONLY if the match case option is checked... This is a bug is it not?
Can anyone confirm this?
Also, if the match is as [A-G] with the match case option checked, the find will work correctly (say using F3). However, if you want to check that the find worked using "Highlight all items found" then the wrong items are highlighted.
Can anyone confirm this behaviour?
If confirmed I'll report it...
Example failing RegEx:
Replace: (((?:)|[(glu])[bcigors])w([A-Z][A-Z_0-9]+)
with: \1_\L\3
will convert: gswHELLO_THERE to gs_hello_there
I've found some more anomalous behaviour in Perl RegExs... (v12.10b)
If I use the Perl RegEx above that works with a replace on the current file, it WON'T work if I scope it to "Open Files".
Can anyone confirm this too?
If confirmed I'll report it...
TIA,
Paolo
There is no such thing as an inconsistently correct system...
Therefore, aim for consistency; in the expectation of reaching correctness!
Therefore, aim for consistency; in the expectation of reaching correctness!