Uso de RexEg para la coincidencia de patrones de URL

El motor de coincidencia de patrones de CrowdHandler utiliza la sintaxis de expresiones regulares POSIX-Extended.

https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions

https://www.regular-expressions.info/posix.html

https://www.ibm.com/docs/en/watson-explorer/11.0.1?topic=queries-posix-regular-expression-syntax-examples

Por ejemplo:

.od coincide con cualquier cadena de tres caracteres que termine en «od», incluyendo «hod", "mod», y «asentir con la cabeza".

[hm]od coincide con «hod" y "mod".

[^m]od coincide con todas las cadenas con las que coincide .od excepto «mod".

^[hm]od coincide con «hod" y "mod», pero solo al principio de la cadena o de la línea.

[hm]od$ coincide con «hod" y "mod", pero solo al final de la cadena o de la línea.

\[.\] coincide con cualquier carácter individual entre «[» y «]», ya que los corchetes están escapados; por ejemplo: «[a]" y "[b]".

/(producto1|producto2)$

Partidos:

https://my-domain.com/product1

https://my-domain.com/product2

pero NO

https://my-domain.com/product1/

<span>https://my-domain.com/products/product1</span>

https://my-domain.com/product3

.*\/(producto1|producto2)\/$

Partidos:

https://my-domain.com/product1/

https://my-domain.com/product2/

Y

<span>https://my-domain.com/products/product1/</span>

<span><span>but </span><strong><span>NOT</span></strong></span>

https://my-domain.com/product1

https://my-domain.com/product2

https://my-domain.com/product3

.*\/(producto1|producto2)\/?$

Partidos:

https://my-domain.com/product1

https://my-domain.com/product2

Y

https://my-domain.com/product1

https://my-domain.com/product1/

<span>https://my-domain.com/products/product1</span>

<span>https://my-domain.com/products/product1/</span>

https://my-domain.com/product2

https://my-domain.com/product2/

https://my-domain.com/products/product2

https://my-domain.com/products/product2/

<span>https://my-domain.com/products/details/product1</span>

<span>etc</span>

<span>but </span><strong><span>NOT</span></strong>

https://my-domain.com/product3

https://my-domain.com/products/product3