Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Relevance
Filter by Flavor
PCRE2 (PHP)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among community submitted regex patterns...
0/512
0
non-sargable finder
Created
·
2023-05-07 11:40
Flavor
·
PCRE2 (PHP)
find non-sargable sql
Submitted by
nick preston
0
Find SQL injection opportunities
Created
·
2023-01-24 00:45
Flavor
·
PCRE2 (PHP)
-
Submitted by
anonymous
0
Extract CREATE TABLE statements from SQL dump file
Created
·
2022-12-08 17:50
Flavor
·
PCRE2 (PHP)
Usage: pcre2grep -M -e'^(CREATE TABLE*?;)' dump.sql > create-tables.sql
Submitted by
Daniel J. Post
0
sql inj
Created
·
2022-11-26 23:38
Flavor
·
ECMAScript (JavaScript)
as
Submitted by
anonymous
0
Find more than one word in SQL
Created
·
2022-11-16 17:05
Flavor
·
PCRE2 (PHP)
Finds instances of more than one word in SQL.
Submitted by
Matthew Hiebing
0
SQL Query Scalar Field Names Extractor
Created
·
2022-09-01 13:04
Flavor
·
Java
SQL Query Scalar Field Names Extractor
Submitted by
Dobri
0
SQL Processes Filter
Created
·
2022-07-20 14:37
Flavor
·
PCRE2 (PHP)
Pattern to detect certain SQL queries in the PROCESSLIST results.
Submitted by
anonymous
0
flake8-sql False Positives
Created
·
2022-07-08 14:00
Updated
·
2022-07-08 14:07
Flavor
·
Python
An example false positive matching docstring for the regex used by flake8-sql (https://github.com/pgjones/flake8-sql).
Submitted by
anonymous
0
Select LIMIT-OFFSET clause in SQL query
Created
·
2021-10-19 00:26
Flavor
·
ECMAScript (JavaScript)
Select the LIMIT/OFFSET clause of an SQL query
Submitted by
Matthew Marcus
0
Json Starts With Keys
Created
·
2021-05-19 06:23
Flavor
·
PCRE2 (PHP)
Regex for checking if JSON starts with desired keys Useful for validating/filtering database entries when used in combination with SQL Like Example: Postgre: select * from table_name where column_json ~ '^\{[\s]\"(tab1|tab3|tab5)".'
Submitted by
MUA
0
Convert list for use in SQL IN statement
Created
·
2021-05-13 09:06
Flavor
·
PCRE2 (PHP)
Just need to remove the last ,
Submitted by
Ian1971
0
Find all commas that are not in parenthesis. Used in SQL_Pretty_Format()
Created
·
2021-01-28 00:50
Flavor
·
ECMAScript (JavaScript)
Find all commas that are not in parenthesis or square brackets.
Submitted by
Ben
0
Add space after comma if it has letters on each side.
Created
·
2021-01-28 00:49
Flavor
·
PCRE (Legacy)
This is used in the SQL_Pretty_Formatter after the commas inside quotes, parenthesis, and brackets have been temporarily replaced with |.
Submitted by
Ben
0
Regex Replace params SQL
Created
·
2020-12-14 09:23
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
0
SQL Query
Created
·
2020-12-02 01:13
Updated
·
2023-07-21 12:41
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
0
SQLA example
Created
·
2020-10-16 17:08
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
0
Choose column names from SQL string
Created
·
2020-04-29 08:51
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
0
otra de sql con variables
Created
·
2020-04-08 13:23
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
0
SQL Index to migration call
Created
·
2020-03-31 09:12
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
0
EX: Regex for check has dangerours SQL
Created
·
2019-11-13 02:40
Flavor
·
PCRE (Legacy)
Check whether or not the SQL is dangerous!
Submitted by
anonymous
Community Library Entry
0
Regular Expression
Created
·
2020-10-16 17:08
Flavor
·
PCRE (Legacy)
/
(
<
[^
>
]
*
>
|
.
cs
[^
}
]
*
}
)
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous