Topic awaiting preservation: Checking for Email & URL's in string (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Gainesboro, TN, USA |
posted 03-12-2006 23:27
I have a textarea, I need to check the contents for a Email address or URL and return an error if found. |
Bipolar (III) Inmate From: f(x) |
posted 03-13-2006 23:39
You want to use regular expressions ("regex" for short) to find URLs and emails within a string. Using regular expressions, you can find only the URLs and emails that are in standard form if you have the right regular expressions. |