Regular Expressions
Regular Expression (short: RegEx) is a type of Language describing how to generate a match to a string containing any characters. RegEx has different flavors, here as we use PHP as the Server side scripting language, PCRE is the used RegEx dialect.
For novices to Regular Expression, we have collected some links to resources on the Web describing Regular Expression in more detail:
- RegEx in a Nutshell has a nice Cheat Sheet and links
- Regular Expression Library is collecting helpful expressions
- One of the many Regular Expression Tester, be aware to look for the PCRE dialect
When using Regular Expressions in our Extensions, make sure to use the starting and ending delimiter of /
. Regular Expression options, such as /i
for case-insensitive matching are supported. For using single quotes (') or double quotes (
“
) in the Regular Expression, ensure that these are escaped using the backslash (\
).
/Demo-[0-9]+/ /Demo-[0-9]+/i /\"Demo-[0-9]+\"/i