Non greedy grep
Posted
by syker
on Stack Overflow
See other posts from Stack Overflow
or by syker
Published on 2010-06-12T04:43:59Z
Indexed on
2010/06/12
4:52 UTC
Read the original article
Hit count: 342
regex
I want to grep the shortest match and the pattern should be something like:
<car ... model=BMW ...>
...
...
...
</car>
... means any character and the input is multiple lines.
© Stack Overflow or respective owner