Re: AW: Regexp match question !
From: Daniel Stellwagen (Daniel.Stellwagen_at_brunata-muenchen.de)
Date: 03/31/04
- Next message: Phil Schaechter: "How Random is Random?"
- Previous message: Manfred Beilfuss: "Antwort: Project Advice Wanted"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 09:40:20 +0200 To: "Schell, Holger" <holger.schell@sap.com>, Perl Beginners <beginners@perl.org>
Schell, Holger wrote:
> Hi,
> Maybe not the best solution but try something like this
> \b[0-9]\b
> Means that there are boundaries before and after and in the middle should be a one digitnumber
> \b\d\b
> works similar.
> ? is searching step by step, so this means:
> $number = 11;
> it starts with searching for a digit or nothing, that is true cause in front of 11 there is no digit, so your regex will be true.
>
> Start to search in the net with important things like:
> Greedy, nongreedy (very important)
Thanks for the speedy answer!
servus
d a n i e l
- Next message: Phil Schaechter: "How Random is Random?"
- Previous message: Manfred Beilfuss: "Antwort: Project Advice Wanted"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|