javascript - RegEx for e-mail address outside code comment -


using regex, trying match e-mail address outside of code comment.

for example, string this:

/**  * hello world  * comment info e-mail @ test@email.com  */ want match this@email.com 

so in case, want return 'this@email.com'. regex formula use in case?

regular expressions seen magic language need text string if knew incantation. it's not that, , shouldn't let progammer-sense subverted idea. core language should heavy lifting, leaving regex patterns detailed work

it's unclear whether need perl solution or javascript one, or if you're equivocal. perl

how "match e-mail address outside of code comment"?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -