Top "Preg-match" questions

Regular expression pattern matching function for the PHP programming language

Regex split email address

I need some help with php regex, I want to "split" email address "[email protected]" to "johndoe" and "@example.…

php regex email preg-match
Are the PHP preg_functions multibyte safe?

There are no multibyte 'preg' functions available in PHP, so does that mean the default preg_functions are all mb …

php preg-replace preg-match multibyte
How to check if a string contains only specific characters

I need to check a string to determine if it contains any characters other than |, in order to assign those …

php preg-match
Regular Expression Help for Date Validation - dd/mm/yyyy - PHP

Can someone show me the error of my ways when it comes to this regular expression: if(preg_match("/^[0-9]{1,2}/[0…

php regex datetime date preg-match
Are preg_match() and preg_replace() slow?

I've been coding in PHP for a while and I keep reading that you should only use preg_match and …

php regex optimization preg-replace preg-match
PHP replace string with values from array

I have a string such as: Hello <%First Name%> <%Last Name%> welcome and I have a …

php regex preg-replace preg-match str-replace
How to add rel="nofollow" to links with preg_replace()

The function below is designed to apply rel="nofollow" attributes to all external links and no internal links unless the …

php regex preg-match
get id video vimeo with regexp preg_match

I try to get the id video from an url of vimeo, but looking in the source code sometimes it …

php regex preg-match vimeo vimeo-api
How can I get only named captures from preg_match?

Possible Duplicate: how to force preg_match preg_match_all to return only named parts of regex expression I have …

php regex preg-match pcre