PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

"\ u", "\ U", "\ l", "\ L" flag not supported.

Open Trip20 opened this issue 4 years ago • 2 comments

hi, I noticed with great disappointment that in "PythonScript_Full_1.3.0.0_x64" in the use of regular expressions the flags "\ u", "\ U", "\ l", "\ L" for changing characters from uppercase / lowercase or vice versa are not supported. You can fix this. Thanks

Trip20 avatar May 16 '21 12:05 Trip20

PythonScript_Full_1.3.0.0_x64

Is this a real version?

It helps when reporting problems to give a specific example. In this case an example might be:

editor.rereplace(r'\u', r'\l${0}')

It also helps to be specific in your problem description. So you might have said that \u works fine as part of the search string, but \l doesn't work when used in the replace string -- the \l seems to have no effect (again carrying on from my specific example above).

But yes, in the summary, I agree with you that this appears to be a problem in PythonScript (I tried version 1.5.4.0).

Of course, a good programmer could create a workaround to handle this, until it is addressed. :-)

sasumner avatar May 16 '21 12:05 sasumner

Of course, a good programmer could create a workaround to handle this, until it is addressed. :-)

Unfortunately I'm not a programmer :-))

Trip20 avatar May 16 '21 18:05 Trip20