Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101214
interpreted = N
texte = If you send me an example of [mystring] and what you want returned, I will work something up for you.On 21/10/2008, at 7:16 AM, 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:
If you send me an example of [mystring] and what you want returned, I will work something up for you.On 21/10/2008, at 7:16 AM, 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/
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:
Re:Merging databases (1997)
WebCat 2.1beta etc (1997)
Not really WebCat- (1997)
Math problems (1998)
Location of Browser Info.txt file (1997)
emailer (1997)
Problem (1997)
Email notification to one of multiple vendors ? (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Emailer.Out (1998)
Writing [raw] to a file (2000)
WebCat2 - [format thousands] (1997)
WebCatalog can't find database (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Showif Context combined with Search (1997)
Sendmail Recipients (2001)
autosensing lanague selection (1997)
Encryption (2000)
WebDNA Feature Request (2006)
header (2017)