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:

    
  1. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("William DeVaul" 2008)
  2. RE: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("Michael A. DeLorenzo" 2008)
  3. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Matthew Bohne 2008)
  4. RE: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("Michael A. DeLorenzo" 2008)
  5. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Gary Krockover 2008)
  6. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Matthew Bohne 2008)
  7. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  8. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("William DeVaul" 2008)
  9. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  10. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("William DeVaul" 2008)
  11. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  12. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  13. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("Gary Krockover" 2008)
  14. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  15. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Patrick McCormick 2008)
  16. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Terry Wilson 2008)
  17. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Charles Kline 2008)
  18. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("Gary Krockover" 2008)
  19. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("Gary Krockover" 2008)
  20. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Stuart Tremain 2008)
  21. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  22. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Stuart Tremain 2008)
  23. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? ("William DeVaul" 2008)
  24. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
  25. Re: [WebDNA] ONLY the FIRST continuous run of numeric chars? (Stuart Tremain 2008)
  26. [WebDNA] ONLY the FIRST continuous run of numeric chars? (Govinda 2008)
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:

spawn (1998) [shell]? (2000) [WebDNA] Gratz with 6.1b1 (2008) Bad "from" address in sendmail (2004) two unique banners on one page (1997) log out (2001) Share cost of training videos! (1998) Include a big block of text (1997) This is an odd error (2001) ConvertChars (2000) Emailer (1997) [WebDNA] Best practice re: password storage (2013) Rhapsody? (1997) Shownext on AOL (2003) Running _every_ page through WebCat ? (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCat2b15MacPlugin - [protect] (1997) WebCatalog f2 Installation (1997) The USArea® Network web site ... (1997) Requiring that certain fields be completed (1997)