perl -e "print $1 if $ARGV[0]=~/(\/newsearch\/detail\/96603)/" "bla vl +a/newsearch/detail/96603 x" /newsearch/detail/96603
You can also choose a different delimiter instead of / see perlrequick for details and this way you prevent the leaning toothpick syndrome
L*
In reply to Re: seeking expression to match "/mysearch/detail/966031"
by Discipulus
in thread seeking expression to match "/mysearch/detail/966031"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |