Welcome Guest, Not a member yet? Register   Sign In
preg_match struggle
#1

[eluser]Clifford James[/eluser]
I have this code:
Code:
preg_match('int(10)', '/\w+/', $matches);
or
Code:
preg_match('int(10)', '/[\w+]/', $matches);
or
Code:
preg_match('int(10)', '/(\w+)/', $matches);

and this error:
Quote:Message: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

What am I doing wrong here?
#2

[eluser]Clifford James[/eluser]
Lol nvm... is see my problem here... Dang need coffee...




Theme © iAndrew 2016 - Forum software by © MyBB