Regex – Maybe even in Editor?

i never used any regex commands. and i actually think what i want is a simple-basic.

i have a list of e-mail addresses where i want to find and replace in my editor (using Atom):

Email addresses look like this: name.surname@domain.com

and i want to replace this with: <a href="mailto:<insert mailaddress>">

Can i achieve that within my Atom editor or will i need an extern script for this?

Example:

<p>
<strong>Name Surname</strong><br>
Main Office<br>
<br>
<span class="glyphicon glyphicon-earphone"></span> 0000 / 11111 1111<br>
<span class="glyphicon glyphicon-envelope"></span> name.surename@office.com
</p>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s