Top "Preg-match" questions

Regular expression pattern matching function for the PHP programming language

Check If Preg Match False instead of True

I have this code that makes sure the username is only letters and numbers but then way my code is …

php preg-match username
preg_match: check birthday format (dd/mm/yyyy)

How do I make the expression which checks the birthday input to match a format like this dd/mm/yyyy? …

php regex preg-match
Detecting a url using preg_match? without http:// in the string

I was wondering how I could check a string broken into an array against a preg_match to see if …

php regex url preg-match
Matching SRC attribute of IMG tag using preg_match

I'm attempting to run preg_match to extract the SRC attribute from the first IMG tag in an article (in …

php regex parsing preg-match src
How To Negate Regex

Possible Duplicate: Regular expression to match string not containing a word? How can I invert a regular expression in JavaScript? …

regex preg-match regex-negation
Get text between HTML tags

Ok, This is a pretty basic question im sure but im new to PHP and haven't been able to figure …

php html arrays string preg-match
php to extract a string from double quote

I have a string: This is a text, "Your Balance left $0.10", End 0 How can I extract the string in between …

php string preg-match preg-match-all double-quotes
Using regex to extract username from email address

My string of text looks like this: [email protected] (John Doe) I need to get just the part before …

php regex preg-match
Validate that input is in this time format - "HH:MM"

I'm trying to use preg_match to validate that a time input is in this format - "HH:MM"

php regex validation preg-match
PHP preg_match get in between string

I'm trying to get the string hello world. This is what I've got so far: $file = "1232#hello world#"; preg_match("#1232\#(.*)\##", $…

php regex preg-match