Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 3,840 community submitted regex patterns...
2
Select the first word of each paragraph
ECMAScript (JavaScript)
If you need to select only the firs complete word for each paragraph.
Submitted by
fmathews28
-
8 years ago
1
dd dd
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
IBAN regexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2
汉字匹配
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Integers
ECMAScript (JavaScript)
Positive or negative. 0 is allowed but may not be a leading digit.
Submitted by
anonymous
-
8 years ago
2
validate german zip codes
ECMAScript (JavaScript)
no description available
Submitted by
dopa0002
-
8 years ago
1
username
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Extract domain from URL
ECMAScript (JavaScript)
Extract the domain out of an url
Submitted by
anubhava
-
8 years ago
1
xregexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Exclude filename path
ECMAScript (JavaScript)
Regular expression to exclude a filename path.
Submitted by
JimiC
-
8 years ago
2
OnTheJob CSV Export to Excel Tab Delimited Import
ECMAScript (JavaScript)
Lets you rearrange columns of time data exported from the On The Job app to something more useful in Excel as required. Still a work in progress as this gets tweaked for improvement and streamlining.
Submitted by
anonymous
-
8 years ago
1
Get the hash of an URL
ECMAScript (JavaScript)
This ER is nice to get a hash from URL, I used today to pass the name of an bootstrap TAB and set the focus when the page loads. I did it using the Replace of JavaScript.
Submitted by
Marcelo Sabadini
-
8 years ago
1
Arabic and English
ECMAScript (JavaScript)
Matches Arabic and English and all other languages that does not use the special characters.
Submitted by
Kishore
-
8 years ago
1
Positive number - currency format (1234567890.12)
ECMAScript (JavaScript)
Positive number with 10 digits before decimal point (possible zeros in front) and 0-2 digits after (possible trailing zeros).
Submitted by
Evgeny Sinitsyn
-
8 years ago
2
Escape regex meta characters
ECMAScript (JavaScript)
This expression escapes characters, which have a special meaning in regex, like .?[]/ and so on. Use it to transform a string that you want to use literally in another regex.
Submitted by
Florian Andresen
-
8 years ago
1
Replace HTML Links with the contaioning text
ECMAScript (JavaScript)
no description available
Submitted by
WBS
-
8 years ago
2
match HTML-safe strings with at least one alphanumeric character
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
tags
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2
Number or Range
ECMAScript (JavaScript)
Allows either a number (e.g. "1", "1.01") or a range (e.g. "1-2", "1.0 - 1.3"). Also allows whitespace on either side of the numbers.
Submitted by
Mark Newcomb
-
8 years ago
2
Test numeric input to be between 0,01 and 100,00
ECMAScript (JavaScript)
Tests a numeric input to be between 0,00 < input <= 100,00. Decimals are optional but have at max 2 places.
Submitted by
Torsten Walter
-
8 years ago
1
...
19
20
21
22
23
...
192
Community Library Entry
106
Regular Expression
ECMAScript (JavaScript)
/
^
[
\t
]
+
|
[
\t
]
+
$
/
gm
Open regex in editor
Description
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified 19 days ago)