Top "Preg-match" questions

Regular expression pattern matching function for the PHP programming language

Troubleshooting "Delimiter must not be alphanumeric or backslash" error when changing ereg() to preg_match()

Possible Duplicate: Converting ereg expressions to preg <?php $searchtag = "google"; $link = "http://images.google.com/images?hl=de&…

php regex preg-match ereg
How to match exactly 3 digits in PHP's preg_match?

Lets say you have the following values: 123 1234 4567 12 1 I'm trying to right a preg_match which will only return true for …

php regex string preg-match
Preg Match Empty String

How to preg_match for an null (empty) string?? I need something like: /([0-9]|[NULL STRING])/

regex preg-match
PHP preg_match and preg_match_all functions

I would like to know what the preg_match and preg_match_all functions do and how to use them.

php preg-match preg-match-all
PHP preg_match (.*) not matching past line breaks

I have this data in a LONGTEXT column (so the line breaks are retained): Paragraph one Paragraph two Paragraph three …

php preg-match
PHP preg_match to find whole words

I'm quite new to regular expressions. Could you help me to create a pattern, which matches whole words, containing specific …

php preg-match
Get string between two strings

My string is: "reply-234-private", i want to get the number after "reply-" and before "-private", it is "234". I have …

php regex preg-match pcre
PHP preg_replace/preg_match vs PHP str_replace

Can anyone give me a quick summary of the differences please? To my mind they both do the same thing? …

php preg-replace preg-match str-replace
Regex - match anything except specific string

I need a regex (will be used in ZF2 routing, I believe it uses the preg_match of php) that …

regex preg-match regex-negation
How do you perform a preg_match where the pattern is an array, in php?

I have an array full of patterns that I need matched. Any way to do that, other than a for() …

php arrays preg-match