Hi all,
I'm looking to modify the email addresses in my data set. The current format of data is:
"<field1>","<field2>","<field3>","<emailid">,"<field5>"
Sample records look like this:
"jdoe","jd","01234y","jdoe@email.com","xyz"
"user2","ts","0123456x","user2@email.net","abcd"
I'm looking for a regex that finds and replaces all mail id's (in column 4) to a static string (e.g, mymail@mail.com).
I'd appreciate any help on this.
Thanks,
Andy
Search and replace - Email address [SOLVED]
Moderators: AmigoJack, bbadmin, helios, MudGuard
Search and replace - Email address [SOLVED]
Last edited by andy2509 on Mon Apr 30, 2007 5:50 pm, edited 1 time in total.
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Assuming that each field in the original text begins and ends with a double quote and does not contain a double quote:
If you want the new email address surrounded by double quotes:
These assume you are using Posix regular expression syntax:
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax