[PHP-DB] Re: String manipulation

2005-05-01 Thread Nadim Attari
http://www.php.net/manual/en/function.substr.php Full String Documentation http://www.php.net/manual/en/ref.strings.php Regards, Nadim > Hi there everyone, > > > > I'm working with a mysql Db where I have a single string that I have to > split into 2 strings, the first character is the first nam

[PHP-DB] Re: string manipulation

2003-02-18 Thread Fredrik de Vibe
[EMAIL PROTECTED] (Martin Dziura) writes: > is there some sort of parsing call i can evoke to extract the url? > Beginning with the http and ending with the first white space? $str = "foobarbazhttp://www.foo.bar/";; preg_match("/(http:\/\/\S+)/", $str, $match); $match[1] should contain the url pa