Re: AW: Regexp match question !

From: Daniel Stellwagen (Daniel.Stellwagen_at_brunata-muenchen.de)
Date: 03/31/04


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



Relevant Pages

  • Re: Input validation for 10, 11 and 12-digit UPC Codes
    ... I have been searching, Googling, searching. ... calc 10, 11 or 12 digit UPC codes. ...
    (comp.lang.javascript)
  • RE: sumif with 2 criteria?
    ... "Tabelle1!$C6" is a 6 digit number which has been converted to a text format ... quotes, if you are searching for number then you don't use quotes. ...
    (microsoft.public.excel.misc)
  • Automatic Dial Up with detection
    ... Im searching for code of Automatic Dial Up ... or maybe if the other side push a digit ... Prev by Date: ...
    (microsoft.public.win32.programmer.tapi)
  • Converting a cell value
    ... I have a worksheet that is imported from another application. ... involves a Model Year of a vehicle and the last two digits of the year is ... this column of 1 or two digit numbers to the correct model year. ... figure out what the formula would be to do this and all kinds of searching ...
    (microsoft.public.excel.worksheet.functions)