|
From: | Wes Biggs |
Subject: | Re: [Regexp] Regexp to match a number... |
Date: | Wed, 26 Feb 2003 12:29:57 -0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 |
Giuseppe Greco wrote:
Actually, I'm using the regexp /[0-9]*[0-9]/ and it more or less works... I say more ore less because if I have a line like another_line = 5abc5 # comment ...
Hi Giuseppe,I can't tell from your code how you're doing the replacement, but you probably want to match on the whitespace around the value as well, for example / [0-9]+ /
Wes
[Prev in Thread] | Current Thread | [Next in Thread] |