Re: Checking for HTTP:// at the start of a string and more ////
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Checking for HTTP:// at the start of a string and more //// | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137665@lists.php.net to get a copy of this message | ||
You don't need a regular expression. Look at the substr() function.
-Rasmus
On Sat, 1 Mar 2003, Philip J. Newman wrote:
> I would like to check for HTTP:// at the start of a string and for at least
> 1 . and a / at the end of a string.
>
> I have tried ereg, but the documentation is not too clear how to format.
>
>
>
>
> ------
> Philip J. Newman.
> Head Developer
> info@philipnz.com
>
> +64 (9) 576 9491
> +64 021-048-3999
>
> ------
> Friends are like stars
> You can't allways see them,
> but they are always there.
>
> ------
> Websites:
>
> PhilipNZ.com - Design.
> http://www.philipnz.com/
> info@philipnz.com
>
> Philip's Domain // Internet Project.
> http://www.philipsdomain.com/
> newmanpj@philipnz.com
>
> Vital Kiwi / NEWMAN.NET.NZ.
> http://www.newman.net.nz/
> philip@newman.net.nz
>
> ------
> Quote:
>
> "God gave men both a penis and a brain,
> but unfortunately not enough blood supply
> to run both at the same time."
>
> - Robin Williams
> (Commenting on the Clinton/Lewinsky affair).
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>