Please help with a Find and Replace using Perl Regex and back references.
I get the unexpected output as shown in the 2nd screenshot.
I am expecting/wating to get rid of everything after the first 3 CSV entries
Many thanks for nay reply
Perl RegEx Back References
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: Perl RegEx Back References
\001\002\003 is wrong, needs to be
ie $1$ followed by $2$ etc
Code: Select all
$1$$2$$3$
Re: Perl RegEx Back References
Fantastic! Thank you. Works a treat. Should I have seen this in the notes/help somewhere? Thanks again
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Perl RegEx Back References
But why not use a CSV replace filter?
Simpler to understand & maintain.
Simpler to understand & maintain.
David