Can someone help me with a regular expression? [Solved]

Find and Replace Strings

Can someone help me with a regular expression? [Solved]

Postby turbogiant76 » Fri Aug 07, 2015 6:23 pm

I have a rather large file I am trying to do a find and replace on. I need to convert all the uppercase letter to lowercase. I have worked with regular expression in the past but it has been a while.

Everything I have tried has either no effect, or produces gibberish. I am working on a test file for now.

I started with:

F: (\w)
R: \L$1

I have tried various operators and such, but no luck. Does anyone have an idea what I should do? Thank you.
turbogiant76
 
Posts: 1
Joined: Fri Aug 07, 2015 6:20 pm

Re: Can someone help me with a regular expression F and R?

Postby Ray » Fri Aug 07, 2015 10:02 pm

Hi,

Why not use menu "Edit --> Change Case --> To Lower Case"?

ToLowercase.png
ToLowercase.png (19.54 KiB) Viewed 8204 times


Thanks,
Ray
Ray
 
Posts: 123
Joined: Thu May 19, 2011 2:10 pm

Re: Can someone help me with a regular expression F and R?

Postby Ray » Fri Aug 07, 2015 10:08 pm

If you are using PilotEdit or PilotEdit x64 (not the Lite version), you can run script to change to lower case with regular expression.
Please refer to the script file <PilotEdit Install Dir>\ScriptSamples\ChangeIntoLowerCase.PLT:
ScriptToChangeCase.png
ScriptToChangeCase.png (11.56 KiB) Viewed 8204 times


You can run the script from menu "Edit --> Execute Scripts".
RunScriptToChangeCase.png
RunScriptToChangeCase.png (26.86 KiB) Viewed 8204 times


Thanks,
Ray
Ray
 
Posts: 123
Joined: Thu May 19, 2011 2:10 pm


Return to Find and Replace

Who is online

Users browsing this forum: No registered users and 1 guest

cron