Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Relevance
Filter by Flavor
PCRE2 (PHP)
JavaScript
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
Community Patterns
Search among community submitted regex patterns...
0/512
3
Sql Injection detection
Created
·
2016-08-12 01:11
Flavor
·
JavaScript
this regex detect any sql injections .
Submitted by
Saeed.Tabrizi@gamil.com
4
Hibernate SQL Reductor
Created
·
2015-03-19 16:11
Flavor
·
JavaScript
If you want to understand an SQL statement for Hibernate: this replaces the selected fields in an SQL statement generated by Hibernate by a shorthand, since you usually just care about the logic. E.g. it changes select foo0_.bla as bla1_3, foo0_.bar as bar1_3, foo0_.baz1_3 as baz1_3 from ... to select foo0_.**1_3 from ...
Submitted by
Hans-Peter Stoerr www.stoerr.net
1
Remove GO and split for batch SQL text
Created
·
2015-04-27 13:44
Flavor
·
JavaScript
Useful for when you need to convert a T-SQL MSSMS Server batch into individual SQL requests by removing the GO between them. e.g. Dim SQLBatches As String() = Regex.Split(text, "(?:\s|\r|\n)+GO\s*(?:\r|\n)", RegexOptions.IgnoreCase)
Submitted by
SarahC
1
Extract Sql Columns from the given query
Created
·
2016-10-17 06:54
Flavor
·
JavaScript
Tries to find the column names from the given SQL query.
Submitted by
anonymous
1
matching sql input
Created
·
2016-09-08 16:21
Flavor
·
JavaScript
no description available
Submitted by
mee
-2
SQL Injection
Created
·
2015-10-14 10:15
Flavor
·
JavaScript
SQL injection regEx pattern
Submitted by
Darshan Patil
0
Javascript SQL String
Created
·
2016-02-08 22:43
Flavor
·
JavaScript
no description available
Submitted by
anonymous
-2
SQL Comment
Created
·
2015-08-22 08:27
Flavor
·
JavaScript
no description available
Submitted by
anonymous
0
Select LIMIT-OFFSET clause in SQL query
Created
·
2021-10-19 00:26
Flavor
·
JavaScript
Select the LIMIT/OFFSET clause of an SQL query
Submitted by
Matthew Marcus
0
sql inj
Created
·
2022-11-26 23:38
Flavor
·
JavaScript
as
Submitted by
anonymous
0
Find all commas that are not in parenthesis. Used in SQL_Pretty_Format()
Created
·
2021-01-28 00:50
Flavor
·
JavaScript
Find all commas that are not in parenthesis or square brackets.
Submitted by
Ben
0
Choose column names from SQL string
Created
·
2020-04-29 08:51
Flavor
·
JavaScript
no description available
Submitted by
anonymous
0
SQL INSERT Columns only
Created
·
2019-06-27 13:17
Flavor
·
JavaScript
no description available
Submitted by
anonymous
0
SQL Header
Created
·
2019-04-15 15:41
Flavor
·
JavaScript
no description available
Submitted by
anonymous
Community Library Entry
1
Regular Expression
Created
·
2016-09-08 16:21
Flavor
·
JavaScript
/
\s
*
\(
\s
*
(?:
'
[
-
\/
a
-
zA
-
Z
0
-
9
]
{1,40}
'
)
\,
\s
*
\s
*
(?:
'
[
-
\/
a
-
zA
-
Z
0
-
9
]
{1,40}
'
)
\,
\s
*
(?:
'
[
ifbIFB
]
{1}
'
)
\,
\s
*
(?:
'
[
0
-
9
]
{8}
'
)
\,
\s
*
(?:
'
[
0
-
9
]
{8}
'
)
\)
\s
*
\,
\s
*
\n
*
/
Open regex in editor
Description
no description available
Submitted by
mee