Regex: Difference between revisions
From DWIKI
mNo edit summary |
m →FAQ Tag: wikieditor |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
=Links= | =Links= | ||
*[http://www.regular-expressions.info/reference.html Regex reference] | |||
*http://gnosis.cx/publish/programming/regular_expressions.html | *http://gnosis.cx/publish/programming/regular_expressions.html | ||
*http://www.zytrax.com/tech/web/regex.htm | *http://www.zytrax.com/tech/web/regex.htm | ||
*http://www.regular-expressions.info | *http://www.regular-expressions.info | ||
*https://regex101.com/ | |||
=Syntax= | |||
==(?:)== | |||
Non-capturing group, so creating a back-reference | |||
=Tools= | |||
*txt2regex | |||
ZZ | |||
==pcre== | |||
*[http://www.pcre.org/ pcre] | |||
=FAQ= | |||
==Match IP address== | |||
'\d{1,3}[-x.]\d{1,3}[-x.]\d{1,3}' | |||
==Replace one or more spaces== | |||
's/\s\s*/FOO/g' | |||
Latest revision as of 15:10, 19 September 2025
Regular expressions
Links
- Regex reference
- http://gnosis.cx/publish/programming/regular_expressions.html
- http://www.zytrax.com/tech/web/regex.htm
- http://www.regular-expressions.info
- https://regex101.com/
Syntax
(?:)
Non-capturing group, so creating a back-reference
Tools
- txt2regex
ZZ
pcre
FAQ
Match IP address
'\d{1,3}[-x.]\d{1,3}[-x.]\d{1,3}'
Replace one or more spaces
's/\s\s*/FOO/g'
