Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\w+[^\S\r\n]+\d+
/
g
Input 1
1
New
someWordChrs 123 The above has <WordCharacters><SPACE><TAB><SPACE> Works in ALL [^\S\r\n\f] Works in All EXCEPT JavaScript \p{blank} [[:blank:]] [\p{Zs}\t] Does NOT Work in JavaScript, python, goland (Works ONLY in pcre) \h Works in JavaScript and python [\t \u00a0\u2000-\u200b\u2028-\u2029\u3000] From Tom: Of course, most of them are rarely used, but the following characters you will find in texts: [ ] U+00A0 no-break space and to lesser degree: [ ] U+2009 thin space [ ] U+202F narrow no-break space [ ] U+200A hair space
Extraction
someWordChrs 123 The above has <WordCharacters><SPACE><TAB><SPACE> Works in ALL [^\S\r\n\f] Works in All EXCEPT JavaScript \p{blank} [[:blank:]] [\p{Zs}\t] Does NOT Work in JavaScript, python, goland (Works ONLY in pcre) \h Works in JavaScript and python [\t \u00a0\u2000-\u200b\u2028-\u2029\u3000] From Tom: Of course, most of them are rarely used, but the following characters you will find in texts: [ ] U+00A0 no-break space and to lesser degree: [ ] U+2009 thin space [ ] U+202F narrow no-break space [ ] U+200A hair space