Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Regular expression error in links table

Quote Reply
Regular expression error in links table
This regular exp have an error in it.

^(https?|ftp|news|mailto):\/\/

You have to add an email like mailto://myemail@mydoman.com and the email address will end up like //myemail@mydoman.com in your mail program when you click the link.

I could not figure out how to write a correct expression that can accept email address and don't need type in "mailto:" when add URL (I am perl newbie).

Thanks for any help.

Yanz

http://www.biomedgate.com
****Portal to life****
Quote Reply
Re: Regular expression error in links table In reply to
Thanks!

regex => '^(https?:\/\/|ftp:\/\/|news:\/\/|mailto:)'

should do the trick.

Cheers,

Alex

--
Gossamer Threads Inc.