Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?:(?:[^\s\d\x2e]+[\s\d\x2e]*)|(?:[\x2e\s\d]*[^\s\x2e\d]+))[\r\n]
/

Description

It matches any one line of string that does not have only digit, space and dot(\x2e). If it has any character beside the aformentioned ones there is a match.

Submitted by Moein - 8 years ago