Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101211
interpreted = N
texte = 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?-GovindaOn 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>> --------------------------------------------------------->>
Associated Messages, from the most recent to the oldest:
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?-GovindaOn 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>> --------------------------------------------------------->>
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:
Restricting to one folder hierarchy on the entire server (2005)
searchable list archive (1997)
printing twice? and fix (1997)
passing large amount of text in post form (2005)
Re[2]: Next X hits (1996)
WebMerchant 1.6 and https (1997)
OT: Please set your computer's clock (1997)
Extended [ConvertChars] (1997)
Plugin or CGI or both (1997)
Two prices in shoppingcart? (1997)
MATH (1998)
Include a big block of text (1997)
Getting total number of items ordered (1997)
Image maps/Webcat (1997)
using showpage and showcart commands (1996)
login via cookies (2006)
Removing [showif] makes a big difference in speed (1997)
[WebDNA] Valid input from a post search form (2013)
Using Plug-In while running 1.6.1 (1997)
Help formatting search results w/ table (1997)