What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php, preg replace help

php, preg replace help
Author: Message:
J-Thread
Full Member
***

Avatar

Posts: 467
Reputation: 8
– / Male / –
Joined: Jul 2004
RE: php, preg replace help
Exactly(Y)

I'm not sure if there are protocols with other chars then a-z in it, but it supports at least http, https, ftp etc. And if you ever see another protocol, you can always change it;)

Btw:
"/^[a-z]+:\/\//i"

The "main preg" is between / and /
The ^ stands for "begins with";
[a-z]+ is one of more letters
: is a colon
\/ is a /, but should be escaped with a \
\/ is another one
/ is the last / of the preg
i means case insensitive:D
10-24-2005 03:00 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
php, preg replace help - by Ezra on 10-23-2005 at 11:17 PM
RE: php, preg replace help - by KeyStorm on 10-23-2005 at 11:23 PM
RE: php, preg replace help - by Ezra on 10-23-2005 at 11:24 PM
RE: php, preg replace help - by Stigmata on 10-23-2005 at 11:24 PM
RE: php, preg replace help - by Ezra on 10-23-2005 at 11:32 PM
RE: php, preg replace help - by brian on 10-24-2005 at 01:10 AM
RE: php, preg replace help - by Ezra on 10-24-2005 at 12:47 PM
RE: php, preg replace help - by Stigmata on 10-24-2005 at 01:05 PM
RE: php, preg replace help - by J-Thread on 10-24-2005 at 01:24 PM
RE: php, preg replace help - by Ezra on 10-24-2005 at 02:28 PM
RE: php, preg replace help - by WDZ on 10-24-2005 at 02:32 PM
RE: php, preg replace help - by J-Thread on 10-24-2005 at 03:00 PM
RE: php, preg replace help - by Ezra on 10-24-2005 at 03:27 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On