develooper Front page | perl.beginners | Postings from March 2002

limiting a regular expression

Thread Next
Zysman, Roiy
March 16, 2002 22:45
limiting a regular expression
Message ID:
Hi All,
As we all know Regular Expressions are very greedy and tries to big as big
as possible.
How do i limit a regular expression for example ion the follwing case
i try to find a specific directory called tmp_* in some paths which are like
if i use (\S+) it will also catch the following dirs, even if i use (\S+)\/
Any suggestions ?
Thx Roiy

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About