Tutorial
Tools & Languages
Examples
Reference
Optimized Alternation Example
\b
(
Get
|
Set
)
(
Value
)
?
\b
Assert position at a word boundary
Match the regular expression below and capture its match into backreference number 1
Match either the regular expression below (attempting the next alternative only if this one fails)
Match the characters "Get" literally
Or match regular expression number 2 below (the entire group fails if this one fails to match)
Match the characters "Set" literally
Match the regular expression below and capture its match into backreference number 2
Between zero and one times, as many times as possible, giving back as needed (greedy)
Match the characters "Value" literally
Assert position at a word boundary
Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print