show only numbers before, within or after the text
- From: lucavilla@xxxxxxxxxxxx (Luca Villa)
- Date: Sat, 28 Jun 2008 08:18:24 -0700 (PDT)
I have a long text file like this:
324yellow
34house
black
54532
15m21red56
44dfdsf8sfd23
How can I obtain (Perl - Windows/commandline/singleline) the
following?
1) only the numbers at the beginning before some alpha text, like
this:
324
34
15
44
2) only the numbers within the alpha text, like this:
21
8
3) only the numbers at the end after some alpha text, like this:
56
23
.
- Follow-Ups:
- Re: show only numbers before, within or after the text
- From: Rob Dixon
- Re: show only numbers before, within or after the text
- From: Dr.Ruud
- Re: show only numbers before, within or after the text
- From: Sisyphus
- Re: show only numbers before, within or after the text
- From: John W. Krahn
- Re: show only numbers before, within or after the text
- From: Gunnar Hjalmarsson
- Re: show only numbers before, within or after the text
- Prev by Date: Re: Using System to read mixed cased environment variables on Windows
- Next by Date: Re: Limiting Toke::Parser
- Previous by thread: Funky Characters in Log files
- Next by thread: Re: show only numbers before, within or after the text
- Index(es):