Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101216
interpreted = N
texte = I haven't tested this, but give it a go[Middle EndBefore=X][grep search=([^0-9]*)([0-9][0-9]*) ([^0-9]*)&replace=X][myString][/grep][/Middle]On 21/10/2008, at 8:35 AM, Govinda wrote:> I appreciate your time/effort Bill and Stuart!>> I am still stuck on this though, and I think the issue is on the > side of WebDNA...>> OK, real simple, from the top:>> this:> [text show=F]myString=1155 Bluebridge, apt.#2[/text]> [grep search=([^0-9]*)([0-9][0-9]*)([^0-9]*)&replace=\2][myString][/ > grep]>> is returning this:> 11552>> I only want "1155". Can I do that with [grep]?>> -G>> On Oct 20, 2008, at 2:36 PM, William DeVaul wrote:>>> You are matching zero numbers in the middle parens.>>>> search=([^0-9]*)([0-9][0-9]*)([^0-9]*)>>>> Should work with the WebDNA regex engine. In another engine, the>> second * would be + (one or more).>>>> Bill>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
I haven't tested this, but give it a go[Middle EndBefore=X][grep search=([^0-9]*)([0-9][0-9]*) ([^0-9]*)&replace=X][myString][/grep][/Middle]On 21/10/2008, at 8:35 AM, Govinda wrote:> I appreciate your time/effort Bill and Stuart!>> I am still stuck on this though, and I think the issue is on the > side of WebDNA...>> OK, real simple, from the top:>> this:> [text show=F]myString=1155 Bluebridge, apt.#2[/text]> [grep search=([^0-9]*)([0-9][0-9]*)([^0-9]*)&replace=\2][myString][/ > grep]>> is returning this:> 11552>> I only want "1155". Can I do that with [grep]?>> -G>> On Oct 20, 2008, at 2:36 PM, William DeVaul wrote:>>> You are matching zero numbers in the middle parens.>>>> search=([^0-9]*)([0-9][0-9]*)([^0-9]*)>>>> Should work with the WebDNA regex engine. In another engine, the>> second * would be + (one or more).>>>> Bill>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/
Stuart Tremain
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:
listing certain items in the orderfile (2002)
[writefile] (1997)
too many nested tags ... (1997)
Country & Ship-to address & other fields ? (1997)
Searchable WebCat (etc.) Docs ? (1997)
More Shopping Cart Problems (2000)
password authentication schemes (2003)
RAM crash (1998)
WebCat on 10.0.4 - iTools 6.0 (2001)
shipcost (1997)
ReturnRaw and redirect (1997)
passing search criteria (1997)
Shop till you drop dead on the avenue ... (1997)
Odd
(2003)
Large databases in WebCat (1997)
quitting (1997)
Large sites (2003)
Summing fields (1997)
Printing controls - form feeds (2002)