Regular Expressions: Difference between revisions

From Simple Wiki
No edit summary
No edit summary
Line 1: Line 1:
[[Template]] matching can use RegEx or Regular Expressions to perform complex pattern matching on text.
[[Template]] matching can use RegEx or Regular Expressions to perform complex pattern matching on text.


A full explanation of how to use the RegEx language is beyond the scope of this wiki. There is a ton of information out there if you Google it. But unless you are a programmer or already know RegEx, it will be much faster to use our simplified [[template]] format or contract our professional services to configure it for you.
Regular Expressions can get very cryptic very quickly, so unless you are a programmer or already know RegEx, it will probably be much faster to use our simplified [[template]] format or contract our professional services to configure it for you.


A great tool for testing Regular Expressions is [https://www.regexbuddy.com/ RegEx Buddy]. This is what we use to build and test RegEx but there is unfortunately no free version.
A great tool for testing Regular Expressions is [https://www.regexbuddy.com/ RegEx Buddy]. This is what we use to build and test RegEx but there is unfortunately no free version.


[https://regex101.com/ RegEx 101] has an online regular expressions tester.
[https://regex101.com/ RegEx 101] has an online regular expressions tester, as well as


Be sure to select the '''JavaScript/ECMAScript''' as your RegEx "flavor" to match the feature set and results you will get with SimpleIndex.
Be sure to select the '''JavaScript/ECMAScript''' as your RegEx "flavor" to match the feature set and results you will get with SimpleIndex.
Line 19: Line 19:
* US Canada zip code regular expression
* US Canada zip code regular expression
* UK zip code regular expression
* UK zip code regular expression
[https://www.regular-expressions.info/tutorialcnt.html Regular-Expressions.info] has one of the better and most extensive RegEx tutorials available.

Revision as of 20:59, 14 January 2022

Template matching can use RegEx or Regular Expressions to perform complex pattern matching on text.

Regular Expressions can get very cryptic very quickly, so unless you are a programmer or already know RegEx, it will probably be much faster to use our simplified template format or contract our professional services to configure it for you.

A great tool for testing Regular Expressions is RegEx Buddy. This is what we use to build and test RegEx but there is unfortunately no free version.

RegEx 101 has an online regular expressions tester, as well as

Be sure to select the JavaScript/ECMAScript as your RegEx "flavor" to match the feature set and results you will get with SimpleIndex.

Another good way to find RegEx examples is to simply google "regex" or "regular expression" plus the type of data you are trying to capture.

For example:

  • Email address regular expression
  • Phone number regular expression
  • Street address regular expression
  • City state zip regular expression
  • US Canada zip code regular expression
  • UK zip code regular expression

Regular-Expressions.info has one of the better and most extensive RegEx tutorials available.