Global replace of regexp to upper case

Oxygen general issues.
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Global replace of regexp to upper case

Post by honyk »

I have documents containing extensions specified as .xml, .csv etc what I would like to replace with XML, CSV ...
I can find appropriate occurencies using regexp ' \.([A-Za-z]{3})' and replace them using ' $1' keyword. Is there any way how to convert the result into upper case?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Global replace of regexp to upper case

Post by sorin_ristache »

Hello,

Do you mean a rename of the files to change the file extension using the dialog Find/Replace in Files? That is not possible. That dialog replaces text only in the file content. It does not rename files.


Regards,
Sorin
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: Global replace of regexp to upper case

Post by honyk »

I mean to replace content of file, not file extension. It is possible to perform uppercase conversion during replacement?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Global replace of regexp to upper case

Post by sorin_ristache »

No, that is not possible. The replace expression does not allow a replace function that is available in specialized regexp languages.


Regards,
Sorin
Post Reply