Welcome Guest, Not a member yet? Register   Sign In
Regular Expression Trouble
#1

[eluser]Jamie Rumbelow[/eluser]
Hey guys,

Having a little issue with my regexes, appreciate a little help.

For some reason it won't pick up the caret and anchor for a new line. I've turned on multi line-mode but it didn't do the trick.

Code:
$preg = "/^((http\:|https\:|ftp\:))((\S)+)$/m";

Cheers,

Jamie




Theme © iAndrew 2016 - Forum software by © MyBB