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

Are you missing a feature? Request it's implementation here.
RBVanDyke
Posts: 45
Joined: Wed Feb 11, 2015 11:25 pm
Location: San Francisco, California USA
Contact:

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

Post by RBVanDyke » Sun Sep 08, 2019 3:51 am

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

RBVanDyke
Posts: 45
Joined: Wed Feb 11, 2015 11:25 pm
Location: San Francisco, California USA
Contact:

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

Post by RBVanDyke » Sun Sep 08, 2019 4:14 am

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

adrian
Posts: 2548
Joined: Tue May 17, 2005 4:01 pm

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

Post by adrian » Tue Sep 10, 2019 1:52 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply