Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 101215
interpreted = N
texte = 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 > 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)
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 > 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:

Running _every_ page through WebCat ? (1997) Server Creation - vendors (2005) Webcatalog quitting (1997) Database Strategy - more... (1998) Credit card types (1997) Separate SSL Server (1997) SSL and reg web* (1997) redirect with frames (1997) Writefile problem (1999) Re:quit command on NT (1997) HomePage Caution (1997) [WebDNA] Nested Searches (2013) WebCat2b12 Mac.acgi--[searchstring] bug (1997) WC1.6 to WC2 date formatting (1997) Email Newsletters (2003) WebCatalog 3.0.8 is on FTP... (2000) WebCat2b12--[searchstring] bug (1997) OT: Limit on # of Pulldown entries (1997) Help!!!! (1999) Conveting Characters to Graphics (1997)