Help for this page

Select Code to Download


  1. or download this
    XXX="/blah1/blah2/blah3/1234567890;arg=AAA123BBB456CCC"
    #         alphanumeric: ^^^^^^^^^^
    ...
    #                   fixed string: ^^^^^
    #                        alphanumeric: ^^^^^^^^^^^^^^^
    echo "$XXX" | perl -n -e 'if (m[^/.+/([^/\?\s]+)(?:;arg=)?]) {print "$
    +1\n";}'
    
  2. or download this
    echo "$XXX" | perl -n -e 'if (m[^/.+/([^/\?\s;]+)(?:;arg=)?]) {print "
    +$1\n";}'
                                                 ^