rajyalakshmi has asked for the wisdom of the Perl Monks concerning the following question:
HI All,
I have pattern which looks like this:
$pattern=Latest 29 Items in Feed & 0 New Fetched items';
In the above pattern string.I would like generalised 29 and 0..
any idea how we do it??? example the patter would want to like Latest x Items in Feed & x New Fetched items';
where x means any digit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generalising string in pattern
by Utilitarian (Vicar) on Nov 13, 2009 at 07:52 UTC | |
|
Re: Generalising string in pattern
by bichonfrise74 (Vicar) on Nov 13, 2009 at 08:49 UTC | |
| |
|
Re: Generalising string in pattern
by Corion (Patriarch) on Nov 13, 2009 at 08:01 UTC | |
by rajyalakshmi (Acolyte) on Nov 13, 2009 at 08:41 UTC | |
by Corion (Patriarch) on Nov 13, 2009 at 08:45 UTC |