Viewing 2 replies - 1 through 2 (of 2 total)
  • In an emergency, you can simply be solved by the regular expressions.

    /some-category/abc/
    Use “(abc|ABC)” or “[aA][bB][cC]” instead of “ABC”.

    @himitsu
    I don’t think it is like your example..

    @robin_dean
    I would try:

    if you want your content and anything before and after
    .*/the-slug-for-my-page/.*

    if you want your content and anything after only
    ^/some-category/the-slug-for-my-page/.*

    if you want your content last and anything before
    ^.*/the-slug-for-my-page/$

    if you want your content exactly
    ^/some-category/the-slug-for-my-page/$

    It works on my site at least 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regex: If String In URL’ is closed to new replies.