T
trans. (T. Onoma)
Honestly, I really dislike regular expressions. Some people love them for
their terseness. I, on the other hand, being a pooh of very little brain,
spend far too many hair pulling hours just trying to get one of the dang
things right. Ugh.
Right now I'm working on this:
/^[ ]*[-](.*\n)+.*\n/
Applied to:
%Q{
- xyz
- abc
- not this
}
I want it to match just the first section, essentially
" - xyz\n - abc\n\n".
But it's matching the whole string. Can any of you Regexp experts fill me in?
Thanks,
T.
their terseness. I, on the other hand, being a pooh of very little brain,
spend far too many hair pulling hours just trying to get one of the dang
things right. Ugh.
Right now I'm working on this:
/^[ ]*[-](.*\n)+.*\n/
Applied to:
%Q{
- xyz
- abc
- not this
}
I want it to match just the first section, essentially
" - xyz\n - abc\n\n".
But it's matching the whole string. Can any of you Regexp experts fill me in?
Thanks,
T.