Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101229
interpreted = N
texte = Perfect!!When I saw Grant was writing [grep] for v.4 I remember thinking, "if he and we get this right, then we'll forget many other tags as this can solve so many things."I suppose both side are still aiming for that. ;-)In that spirit, Bill can you explain this last [grep] search param you wrote in english? What is the logic?I get the first two parts, i.e.:-any number of non-numeric chars, followed by-at least one numeric char, followed by((now here is where it is not clear to me))? - any number of any chars, followed by? - a pipe, followed by? - any number of any charswhy does this do the job?On Oct 21, 2008, at 2:32 AM, William DeVaul wrote:> [grep search=[^0-9]*([0-9][0-9]*).*|.*&replace=\1][myString][/grep]>> This will work to ignore the case where no number is in the string.> It will return an apartment number if there is no street number.>
Associated Messages, from the most recent to the oldest:
Perfect!!When I saw Grant was writing
[grep] for v.4 I remember thinking, "if he and we get this right, then we'll forget many other tags as this can solve so many things."I suppose both side are still aiming for that. ;-)In that spirit, Bill can you explain this last
[grep] search param you wrote in english? What is the logic?I get the first two parts, i.e.:-any number of non-numeric chars, followed by-at least one numeric char, followed by((now here is where it is not clear to me))? - any number of any chars, followed by? - a pipe, followed by? - any number of any charswhy does this do the job?On Oct 21, 2008, at 2:32 AM, William DeVaul wrote:> [grep search=[^0-9]*([0-9][0-9]*).*|.*&replace=\1][myString][/grep]>> This will work to ignore the case where no number is in the string.> It will return an apartment number if there is no street number.>
Govinda
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Showif Or (2000)
Variable in a variable (2002)
WebDNA-Talk Digest mode broken (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
Two options to consider (2008)
quitting (1997)
Showcart in [include] (1999)
Mac Scheduling (1998)
Multiple prices (1997)
Fedora Core 3 and WebDNA (2005)
Milliseconds (1998)
WebCat consulting $ (1998)
unsubscribe, try 2 (2000)
Why is [authenticate] not recognizing [username] on all sitedirectories? (2000)
WebCatalog f2 Installation (1997)
[WriteFile] problems (1997)
Limiting user access to .tmpl files (1997)
many-to-one problem (1998)
Generating Report Totals (1997)
is your webDNA site 'froogle' ready ??? (2003)