in reply to Re^3: How do a make an IP look up non-greedy?
in thread How do a make an IP look up non-greedy?
Your command line is closer at hand and will do just fine as a regex tester. This perl one-liner creates a little loop that you can use to test as many regex combinations as you please or to test small bits of other perl code. It creates a simple read-eval-print (REP) loop:
perl -ne'{ print "==>",eval,"\n" }'To use:
Note: tested only on Linux. Presumably also works in cywgin-bash. MsWin command lines are a bit funky and I'm not sure how well perl one-liners behave there. Perhaps another monk can fill in.
Best, beth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How do a make an IP look up non-greedy?
by targetsmart (Curate) on Jun 16, 2009 at 11:18 UTC | |
|
Re^5: How do a make an IP look up non-greedy?
by kjg (Sexton) on Jun 16, 2009 at 11:54 UTC | |
|
Re^5: How do a make an IP look up non-greedy?
by AnomalousMonk (Archbishop) on Jun 16, 2009 at 12:45 UTC | |
by Anonymous Monk on Jun 16, 2009 at 13:03 UTC |