Baz has asked for the wisdom of the Perl Monks concerning the following question:
Then $1 dictates the extention type. But im not sure how this works in the context of $largeStr containing a more than 1 telephone number. How can I find the frequency of the 10 extention types in $largeStr$largeStr =~ /Tel: 06(\d+)/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex: plucking numbers from a large string
by RMGir (Prior) on May 01, 2002 at 18:15 UTC | |
|
Re: Regex: plucking numbers from a large string
by broquaint (Abbot) on May 01, 2002 at 18:29 UTC | |
by Juerd (Abbot) on May 01, 2002 at 19:13 UTC | |
by RMGir (Prior) on May 01, 2002 at 20:12 UTC | |
|
Re: Regex: plucking numbers from a large string
by abaxaba (Hermit) on May 01, 2002 at 18:27 UTC | |
|
Re: Regex: plucking numbers from a large string
by mephit (Scribe) on May 01, 2002 at 21:37 UTC |