Re: Testing a URL with regex
| From: | Sn!per | Date: | Thu, 08 Jan 2009 01:34:19 +0000 |
| Subject: | Re: Testing a URL with regex | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285630@lists.php.net to get a copy of this message | ||
Then Ashley Sheridan <ash@ashleysheridan.co.uk> said:
Why do you need a regex here? All the URL's have the same foremost component, which is exactly 38 characters in length. Do you perchance need a regualr expression to parse other URL's? If you just need to extract everything before the first ampersand, then strpos and substr would be the best to use. Ash www.ashleysheridan.co.ukAshley and all, thank you for your assistance. -- roger -- Sign Up for free Email at http://ureg.home.net.my/