Textpad Regular Expression Help

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
sg94k6r2
Posts: 5
Joined: Fri Nov 14, 2003 3:44 pm

Textpad Regular Expression Help

Post by sg94k6r2 »

I Posted this in HOW_TO Section but realized that questions are not supposted to be posted there (Or so I read)

I regularly receive a file that has lines like..
"0001234","CD44567","12*","","00987","0000003456","JOESMITH00"

It is always 7 fields value delimited by double quote (" ") and column delimited by comma (,).

I have to convert the last column value ""JOESMITH00" to "joesmith00"
the line should look like

"0001234","CD44567","12*","","00987","0000003456","joesmith00"

There are thousands of lines - is there a regular expression that will help me achieve this by find and replace?

Thank you very much!
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

This works for me:
find [[:upper:]]+[0-9]*"$
replace \L&

I have used POSIX regular expression syntax, which can be selected
from the Editor page of the Preferences dialog box. HTH
Then I open up and see
the person fumbling here is me
a different way to be
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Hi sg94k6r2

You were right about the HOW TO forum. Not the place for questions.

You still can go back and delete that item if no one has responded yet.

By coming here to the correct forum you benefit from a nice quick solution by s_reynisson. Well done!
Hope this was helpful.............good luck,
Bob
sg94k6r2
Posts: 5
Joined: Fri Nov 14, 2003 3:44 pm

Thank you Thank you Thank you!

Post by sg94k6r2 »

Dear s_reynisson

Oh this worked like a charm! Thank you very much!!

I wish I could return the favor some day.

Regards,

Jaimin


[quote="s_reynisson"]This works for me:
find [[:upper:]]+[0-9]*"$
replace \L&

I have used POSIX regular expression syntax, which can be selected
from the Editor page of the Preferences dialog box. HTH[/quote]
Post Reply