Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-08-26 21:01
Flavor·PCRE (Legacy)

/
(?:([\s\d\x2e]*[^\s\d\x2e\x3a]+[\x2e\s\d]*)|(?:[^\s\d\x2e\x3a]+[\s\d\x2e]*)[^\s\d\x2e\x3a]+)[\r\n]
/
iU
Open regex in editor

Description

This regex capture only one of string that is a combination of number, dot and characters. It can also not have any number or dot, but must have at least one character

Submitted by Moein