reg help

General questions about using TextPad

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

Post Reply
dabombst
Posts: 11
Joined: Tue Nov 01, 2005 7:24 pm

reg help

Post by dabombst »

Hi

I only need the data btween the ",".

EC06919B0150355,EC06919B0150420,066
EC06919B0151231,EC06919B0151601.1,372
EC06919B0151602,EC06919B0151602,001
EC000301523,EC000301641,119
ECg004021003,ECg004028702,7700

should be
EC06919B0150420
EC06919B0151601.1
EC06919B0151602
EC000301641
ECg004028702

Thanks
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Search for: ^.*,(.*),.*
Replace with: \1

Make sure check is in box for Regular expressions in Search/Replace box.
Configure/Preferences/Editor POSIX is recommended, but not needed here.
Hope this was helpful.............good luck,
Bob
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Posix syntax is required for this regular expression, as it uses parentheses in the Posix style.
dabombst
Posts: 11
Joined: Tue Nov 01, 2005 7:24 pm

Thanks!!!

Post by dabombst »

you guy are great.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Thanks Ben, I missed that, too obvious .... aargh!
Hope this was helpful.............good luck,
Bob
Post Reply