Il motore di corrispondenza dei modelli di CrowdHandler utilizza la sintassi delle espressioni regolari POSIX-Extended.
https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions
https://www.regular-expressions.info/posix.html
Ad esempio:
.od
corrisponde a qualsiasi stringa di tre caratteri che termina con "od", incluso "hod", "mod", e "annuire".
[hm]od
partite "hod" e "mod".
[^m]od
corrisponde a tutte le stringhe abbinate da .od
tranne "mod".
^[hm]od
partite "hod" e "mod", ma solo all'inizio della stringa o della riga.
[hm]od$
partite "hod" e "mod", ma solo alla fine della stringa o della riga.
\[.\]
corrisponde a qualsiasi singolo carattere circondato da "[" e "]", poiché le parentesi vengono evase, ad esempio: "[a]" e "[b]".
/(prodotto1|prodotto2)$
Partite:
https://my-domain.com/product1
https://my-domain.com/product2
ma NON
https://my-domain.com/product1/
https://my-domain.com/products/product1
https://my-domain.com/product3
.*\/(prodotto1|prodotto2)\/$
Partite:
https://my-domain.com/product1/
https://my-domain.com/product2/
E
https://my-domain.com/products/product1/
ma NON
https://my-domain.com/product1
https://my-domain.com/product2
https://my-domain.com/product3
.*\/(prodotto1|prodotto2)\/?$
Partite:
https://my-domain.com/product1
https://my-domain.com/product2
E
https://my-domain.com/product1
https://my-domain.com/product1/
https://my-domain.com/products/product1
https://my-domain.com/products/product1/
https://my-domain.com/product2
https://my-domain.com/product2/
https://my-domain.com/products/product2
https://my-domain.com/products/product2/
https://my-domain.com/products/details/product1
ecc.
ma NON
https://my-domain.com/product3
https://my-domain.com/products/product3