P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Here's what I have but it's not working: It helps if you go through the elements of the regexp telling in plain words what it is trying to match, or writing it as an extended regexp and comment it:
I just stop here. Matching a literal b and then something anchored at start of string never succeeds. All wrong. Start over. What are you trying to match? This regexp looks like some working one which has been tinkered with, without having read perlre trying to understand as much as possible of it. Do that now. Post the original regex, samples and expected output.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In reply to Re: regex to return line with name but not if it has a number
by shmem
|
|