Parsing a Dynamic URI ?

Comments

1 comment

  • Avatar
    Kevin Keech

    You can try using an "or" condition as part of your regex anchors. ie. "?someId=" or "&someId="

    parse regex "(?:&|\?)someId=(?<someId>.{5})"

    If you need to trigger on the page in the URI you can expand the expression to capture more.

    parse regex "\/foo.*(?:&|\?)someId=(?<someId>.{5})"

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.