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 18,040 community submitted regex patterns...
0
FirstVar11
Python
ONE reg expression to use
Submitted by
anonymous
-
5 years ago
0
Word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Operators
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
FloatingPointNumbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
IntegerNumbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Update ea parameters name
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Date dd-mm-yyyy
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Numbers except integers starting with zero
Python
matches: 1234 .0123 0.123 no matches:...
Submitted by
anonymous
-
5 years ago
0
ORDERS96B MATCH LINE DESCRIPTION
PCRE (PHP <7.3)
ORDERS96B Example of matching the line description of a ORDERS96B flatfile. IMD+F++:::DIN 7979 D Stahl blank | 8x30 Zylin' (?) + (?) + (?) + (? (?) : (?) : (? : (?) ) '...
Submitted by
Raik Zobel
-
5 years ago
0
ORDERS96B MATCH ALL ITEM LINES METHOD 1
PCRE (PHP <7.3)
From the first line string of an item line --> ^LIN over line breaks --> [\s\S]* to the last line string of an item line --> ^DTM.*
Submitted by
Raik Zobel
-
5 years ago
0
ORDERS96B MATCH ALL ITEM LINES METHOD 2
PCRE (PHP <7.3)
From the first line string of an item line --> ^LIN over line breaks --> [\s\S]* to before (lookahead) the first line after the whole item line string --> (?=^UNS)
Submitted by
Raik Zobel
-
5 years ago
0
ORDERS96B MATCH ITEM LINES METHOD 1
PCRE (PHP <7.3)
Same as "ORDERS96B MATCH ALL ITEM LINES METHOD 1" with a lazy quantifier to get multiple matches. This works only, if the last line of a item line elemet is known, otherwise try METHOD 2 From the first line string of an item line --> ^LIN over line breaks --> [\s\S]*? to the last line string of an ...
Submitted by
Raik Zobel
-
5 years ago
0
ORDERS96B MATCH ITEM LINES METHOD 2
PCRE (PHP <7.3)
^LIN[\s\S]?(?=^LIN.?)|^LIN[\s\S]* FIRST PART From the first line string of an item line --> ^LIN over line breaks --> [\s\S]*? to before (lookahead) the next line element --> (?=^LIN.*?)...
Submitted by
Raik Zobel
-
5 years ago
0
[PPC] Like Search
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Denco exceptions 3-2-20
PCRE (PHP <7.3)
Broadcast, Multicast and Intrado
Submitted by
anonymous
-
5 years ago
0
Actions proyecto lenguajes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
BJR - descriptions split
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Prisantall v2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
autolink 와 src에 띄어쓰기있는 링크 충돌
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
5 years ago
0
Safaricom Regex ~Feb 2020
ECMAScript (JavaScript)
As of Feb 2020 Sources: https://ca.go.ke/wp-content/uploads/2020/01/Telecommunication-Numbering-Plan-for-Kenya-Feb-2020-compressed.pdf
Submitted by
anonymous
-
5 years ago
1
...
273
274
275
276
277
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
(?:
)*
)
.
+
(?:
\n
\1
(
(?:
)+
)
.
*
)
(?:
\n
\1
(?:
(?:
)+
)
.
*
)*
/
gm
Open regex in editor
Description
group 1: base indent group 2: indentation spaces
a very generic code capturer
Submitted by
anonymous
-
5 years ago