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 13,680 community submitted regex patterns...
0
Info o filmu
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
How to get AC, Tax_id, optionally VAR_SEQ, and Sequence?
Python
1) (?ms)ID\s+.?^AC\s+(\w+);.?^OX\s+NCBI_TaxID=(\d+).?(?#how to optionally capture group ^FT\s+VAR_SEQ.?\/FTId=\w+\. ).?^\s{5}(.?)// 2) (?ms)(FT\s+VAR_SEQ.*?\/FTId=\w+\.) (1) can give AC, Tax_id and Sequence and these 3 fields are always present in an Entry, but VAR_SEQ field is optional. (2) gives ...
Submitted by
anonymous
-
7 years ago
0
YouTube Video URL Matcher
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
RegexForSplitStringUsingRegex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Url brochure met utm
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
DisSection_Parser
PCRE (PHP <7.3)
no description available
Submitted by
zhaDe
-
7 years ago
0
Add a nonce for inline scripts (CSP, nginx)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
final2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
SCHEMA.TABLE_NAME|Primary_key (x (x+n)?)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
final
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
attr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Schema.Table_name | \ \*\
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
FROM\ SCHEMA(.TABLE_NAME)?
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Schema.Table_name | \ \*\
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Decimal type check for view column
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
html content
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
get attributes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
get all tags except one
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Regex html tag
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
dick detector
PCRE (PHP <7.3)
detect 8=D regex
Submitted by
anonymous
-
7 years ago
1
...
452
453
454
455
456
...
684
Selects full path without filename or query parameter
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
a
-
z
]
:
|
\/
[
a
-
z0
-
9_.$●-
]
+
\/
[
a
-
z0
-
9_.$●-
]
+
)?
(
(?:
\/
|
^
)
(?:
[^
\/
:*?"<>|
\r\n
]
+
\/
)+
)
/
Open regex in editor
Description
For example: /foldera/folderb/filename.txt?query=abc
Result: /foldera/folderb/
Submitted by
RAussi
-
8 years ago