Page 1 of 1

Enhance REGEX find/replace to support change to/from uppercase/lowercase?

Posted: Sun Sep 08, 2019 3:51 am
by RBVanDyke
Currently running oXygen XML Editor 21.1.

In oXygen, I'd like to be able to use REGEX find/replace to change case ala this example:

https://stackoverflow.com/questions/207 ... se-letters

I understand only a few REGEX engines support upper to lower or lower to upper case replacements. (Notepad++ being the one I normally revert to when I need to so do...)

Any chance oXygen's find/replace could be enhanced to support REGEX case changing?

Cheers & thanks as always,
Riley
SFO

Re: Enhance REGEX find/replace to support change to/from uppercase/lowercase?

Posted: Sun Sep 08, 2019 4:14 am
by RBVanDyke
Actually another extremely(!) good tool for developing REGEX is regex101.com.

I just used it to convert a lowercase character to uppercase. Example excerpt follows.

Target text (excerpt):

Code: Select all

 <td>kill
REGEX (case-sensitive find):

Code: Select all

<td>([a-z])
REGEX substitution:

Code: Select all

<td>\U$1
Result:

Code: Select all

<td>Kill
For information, in regex101.com, search Quick Reference for case.

It'd be great if I could have done this in oXygen XML rather than regex101.com...

Cheers & hope this helps,
Riley

Re: Enhance REGEX find/replace to support change to/from uppercase/lowercase?

Posted: Tue Sep 10, 2019 1:52 pm
by adrian
Hi,

Oxygen uses Java regular expression syntax which does not offer this possibility (lowercase/uppercase in replacement).
I have logged a feature request on our issue tracking tool. For future reference it is issue EXM-44096.

Regards,
Adrian