hello there all. I am new to python. i have a long contact list file that my friends extracted from internet. what i want to do is, i want to extract all the email addresses from the file and i have successfully done that. but now i also want to add a ";" at the end of each email addresses please tell me how can i do that.
3 replies to this topic
#1
Posted 09 September 2011 - 04:59 AM
|
|
|
#2
Posted 09 September 2011 - 07:12 AM
You would do a regex search/replace where you put parenthesis around your regex for an email and replace it with $1;
#3
Posted 10 September 2011 - 08:06 PM
Can u please post the code. I am a newbie. Thanks. :D
#4
Posted 11 September 2011 - 06:00 AM
Unfortunately, I know Regex better than python (by a lot), and there are subtle differences between environments. You already have the code to validate emails, so adding the parenthesis shouldn't be hard.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









