2009/9/4 Noah Garrett Wallach <noah-l...@enabled.com>:

> is there any way to search for the following text?  In some cases the text
> that I am search could be
>
> "one-two-three-"
> or sometimes the text could be "one-two-"
If you're looking for this specific text then a good answer was
already given, but if that's an example, and what you want is
"someword-otherword-anotherone-" then you may need something more
generic like
/(?:[a-z]+-){2,3}/

which looks for a series of characters followed by a - that recurrs 2
or 3 times.

-- 
Erez

"The government forgets that George Orwell's 1984 was a warning, and
not a blueprint"
http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to