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
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 6,140 community submitted regex patterns...
2
Bible verse, biblical string in text
ECMAScript (JavaScript)
Matches biblical strings in text. Two capture groups are used - one for the books name and another for the passages of the same book. RegEx is long because it is strict!!! If you want to also match books names without specified chapter and verses use: /((?:[1234]\s?)?[a-zа-я]+)(\s?\d+(?::(?:\d+[—–-]...
Submitted by
Desislavsd
-
8 years ago
2
Title Casing
ECMAScript (JavaScript)
for use in function to title case a string; function cap(str) { return str.replace(/\w\S*/g, function(txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }
Submitted by
Tamara F
-
8 years ago
2
get href
ECMAScript (JavaScript)
gets value of href
Submitted by
me
-
8 years ago
2
URL with Port
ECMAScript (JavaScript)
no description available
Submitted by
rkl
-
8 years ago
2
Capture 2 digits after a dash
ECMAScript (JavaScript)
Find all '-' and capture 2 following digits
Submitted by
Marie Imperial
-
8 years ago
2
Regular expression for matching parenthesis, two words and comma
ECMAScript (JavaScript)
Regular expression for matching parenthesis, two words and comma
Submitted by
anonymous
-
8 years ago
2
JavaScript RegEx for Version ID
ECMAScript (JavaScript)
This expression is used to attempt to ID version of code.
Submitted by
Henry Rieke
-
8 years ago
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
2
汉字匹配
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2
validate german zip codes
ECMAScript (JavaScript)
no description available
Submitted by
dopa0002
-
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
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
2
match HTML-safe strings with at least one alphanumeric character
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
2
CSS @media selector
ECMAScript (JavaScript)
Matches a CSS @media selector, matches outer {} curly brackets, works with every CSS code, minified too.
Submitted by
emd4
-
8 years ago
2
Palindrome
ECMAScript (JavaScript)
Captures a palindrome of 9 digits or less
Submitted by
anonymous
-
8 years ago
2
foder add prefix
ECMAScript (JavaScript)
auto prefix ("/") to folder
Submitted by
anonymous
-
7 years ago
2
domain for Google Data Studio (re2 dialect)
Golang
Matches subdomain, domain and top level in a field that contains a urls. https://www.whatever.you.want ---> whatever.you.want
Submitted by
anonymous
-
7 years ago
2
IPv4 dotted decimal
ECMAScript (JavaScript)
This regexp was written for Regex Tuesday Challenge - Week Six.
Submitted by
anonymous
-
7 years ago
1
...
8
9
10
11
12
...
307