I have a set of strings which contain a series of numbers delimited by a '-', like the following example.
0-0-0-23-34-2345-345-21-0-0-0-256-78-0-0-0-0-0-0-0-56-45-3-34-...
What I would like to find (with perl regular expressions?) is every number subseries in the string with a specific structure. For example, I could want to find any series of consecutive non-zero numbers followed by four or more zeros
.......-2-3-4-5-6-0-0-0-0-0-0-........
Is there an easy way to do these kinds of searches?
In reply to Perl pattern finding by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |