Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101212
interpreted = N
texte = 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, thesecond * would be + (one or more).BillOn Mon, Oct 20, 2008 at 4:16 PM, Govinda
wrote:> Stuart,>> can you give me an example of what you mean?>> Donovan/Chris,> please note that the grep search param I tried (see below) behaves> differently than BBedit's. I don't know if BBedit's grep complies with the> webdna docs when it mentions- "[a] popular UNIX utility has been adapted to> WebDNA.".> I.e. is this grep behavior I found a bug or a feature?>> -Govinda>> On Oct 20, 2008, at 2:06 PM, Stuart Tremain wrote:>>> Grep the non numbers to a known character and then use middle to end at>> that character.>>>> On 21/10/2008, at 6:57 AM, Govinda wrote:>>>>> Hi all,>>>>>> quick [grep] Q:>>>>>> [grep search=([^0-9]*)([0-9]*)([^0-9]*)&replace=\2][myString][/grep]>>> is finding ALL the numeric chars in [myString] and essentially>>> concatenating them together.>>> I just want ONLY the FIRST continuous run of numeric chars.>>>>>> suggestions?>>> TIA>>>>>> -Govinda>>> --------------------------------------------------------->>>> ---------------------------------------------------------> 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:
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, thesecond * would be + (one or more).BillOn Mon, Oct 20, 2008 at 4:16 PM, Govinda wrote:> Stuart,>> can you give me an example of what you mean?>> Donovan/Chris,> please note that the grep search param I tried (see below) behaves> differently than BBedit's. I don't know if BBedit's grep complies with the> webdna docs when it mentions- "[a] popular UNIX utility has been adapted to> WebDNA.".> I.e. is this grep behavior I found a bug or a feature?>> -Govinda>> On Oct 20, 2008, at 2:06 PM, Stuart Tremain wrote:>>> Grep the non numbers to a known character and then use middle to end at>> that character.>>>> On 21/10/2008, at 6:57 AM, Govinda wrote:>>>>> Hi all,>>>>>> quick [grep] Q:>>>>>> [grep search=([^0-9]*)([0-9]*)([^0-9]*)&replace=\2][myString][/grep]>>> is finding ALL the numeric chars in [myString] and essentially>>> concatenating them together.>>> I just want ONLY the FIRST continuous run of numeric chars.>>>>>> suggestions?>>> TIA>>>>>> -Govinda>>> --------------------------------------------------------->>>> ---------------------------------------------------------> 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/>
"William DeVaul"
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:
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
show all problem (1997)
can WC render sites out? (1997)
formulas.db and prices (1999)
For those of you not on the WebCatalog Beta... (1997)
Re:Merging databases (1997)
WebCat2 - many [carts] on one template page? (1997)
Possible Bug 4.51 (2004)
Digest Version (2000)
Not carrying Zero (2000)
UPDATE PROBLEM (1997)
WebCat2 beta 11 - new prefs ... (1997)
Logout? (1998)
DON'T use old cart file! (1997)
OK, here goes... (1997)
[Webcat 2]Next (1997)
Emailer errors & disappearing messages (1998)
Document Contains No Data! (1997)
AutoCommit Preference? (1998)
back button loses cart (2000)