SQL Regex match all Online
Run regex global match and return all matches.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
The result lists each match and its captured groups. The browser uses global matching with JavaScript regex syntax. Use PostgreSQL’s function reference to adapt the input to SQL syntax.
- Regex pattern
"/id=(\\d+)/"- Flags
"g"
id=11 id=22 id=33
[
[
"id=11",
"11"
],
[
"id=22",
"22"
],
[
"id=33",
"33"
]
]Using this operation in SQL
The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.