in reply to Re: matching substring in url
in thread matching substring in url

Unfortunately, semicolon ";" is not guaranteed, so this won't work -- the part starting with (and including) ";" may or may not appear in the url.
Any other suggestions?

Replies are listed 'Best First'.
Re^3: matching substring in url
by hippo (Archbishop) on Nov 08, 2019 at 22:15 UTC

    In that case:

    echo "$XXX" | perl -ne '/\/(\w+)[^\/]*?$/ and print $1'