[[File:RegexpHighlight.webp|thumb|500px|alt=Lorem ipsum first paragraph where every consonant-vowel pair is highlighted|The alternating <mark style="background:rgb(255,255,0);color:rgb(0,0,0)">yellow</mark> and <mark style="background:rgb(255,221,136);color:rgb(0,0,0);">orange</mark> highlights show results for the following regexp pattern: <code>/[a-z](?<![aeiou])[aeiou]/gi</code> (any consonant-vowel pair)]]
[[File:RegexpHighlight.webp|thumb|500px|alt=Lorem ipsum first paragraph where every consonant-vowel pair is highlighted|The alternating <mark style="background:rgb(255,255,0);color:rgb(0,0,0)">yellow</mark> and <mark style="background:rgb(255,221,136);color:rgb(0,0,0);">orange</mark> highlights show results for the following regexp pattern: <code>/[a-z](?<![aeiou])[aeiou]/gi</code> (any consonant-vowel pair)]]
'''Regular expression''', often shorted to regex, is a standard
'''Regular expression''', often shorted to '''regex''', is used to specify a [[w:Pattern matching|match pattern]] with just text.
== Syntax ==
== Syntax ==
Line 52:
Line 52:
== See also ==
== See also ==
* [[Match () with regex () ()|<sb>(Match (foo bar) with regex (foo)(g) :: operators)</sb>]]
* [[Match () with regex () ()|<sb>(Match [foo bar] with regex [foo] [g] :: operators)</sb>]]
* [[Test regex () () with text ()|<sb><Test regex (foo bar)(g) with text (foo) :: sensing></sb>]]
* [[Test regex () () with text ()|<sb><Test regex [foo bar] [g] with text [foo] :: sensing></sb>]]
== External links ==
== External links ==
Revision as of 08:53, 2 July 2024
The alternating yellow and orange highlights show results for the following regexp pattern: /[a-z](?<![aeiou])[aeiou]/gi (any consonant-vowel pair)
Regular expression, often shorted to regex, is used to specify a match pattern with just text.
TurboWarp extension gallery featuring TrueFantom's RegExp extension. It can be loaded into PenguinMod using https://extensions.turbowarp.org/true-fantom/regexp.js as the URL in the Load Custom Extensions popup. It adds more regex functionality into PenguinMod.
regex101, fairly useful little app with some fun challenges to test your knowledge of regex.
MDN's Regular expressions documentation for JavaScript. There wasn't a good place to cite this, but I sourced at lot of stuff from here. Pretty much all of the names for each syntax element.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.