in reply to seeking expression to match "/mysearch/detail/966031"
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*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: seeking expression to match "/mysearch/detail/966031"
by AnomalousMonk (Archbishop) on Nov 18, 2016 at 19:16 UTC |