Top "Preg-match" questions

Regular expression pattern matching function for the PHP programming language

PHP preg_match to find multiple occurrences

What is the correct syntax for a regular expression to find multiple occurrences of the same string with preg_match …

php preg-match
Split camelCase word into words with php preg_match (Regular Expression)

How would I go about splitting the word: oneTwoThreeFour into an array so that I can get: one Two Three …

php regex string preg-match
check if the string contains alphabets in php

How to check if the string has alphabets in PHP The ctype_alpha and ctype_digit doesn't help in it. …

php regex string preg-replace preg-match
preg_replace how to replace only matching xxx($1)yyy pattern inside the selector

I'm trying to use a regular expression to erase only the matching part of an string. I'm using the preg_…

php regex replace preg-match regex-group
How to validate a domain name using Regex & Php?

I want a solution to validate only domain names not full urls, The following example is what i'm looking for: …

php regex preg-match
php - check whether string end with image extension

I need to verify string whether the string is image file name. $aaa = 'abskwlfd.png'; if ($aaa is image file) { …

php preg-match
How to check string's date format in PHP?

I would like to check if the string has this time format: Y-m-d H:i:s and if not than …

php regex preg-match
preg_match: number-alphabets and commas only

How do I write a regular expression which matches number-alphabets and commas only? I came out with this one below …

php regex preg-match
PHP/REGEX: Get a string within parentheses

This is a really simple problem, but I couldn't find a solution anywhere. I'm try to use preg_match or …

php regex preg-match preg-match-all
PHP: Simple regular expressions to match length?

I'm creating a registration system that needs to check the name/pass etc. with REGEX (and prefer to), what I've …

php regex numbers preg-match