Re: [WebDNA] Quick grep question

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103373
interpreted = N
texte = --Boundary-00=_q+rjK2rUAMPrN58 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Grep doesn't count, you probably need listchars: [math show=f]num=0[/math] [listchars chars=[yourString]] [showif " "="[char]"] [math show=f]num=num+1[/math] [/showif] [/listchars] [num] Sincerely, Ken Grome > Does anyone have a quick [grep] to count the number of > spaces in a string? --Boundary-00=_q+rjK2rUAMPrN58 Content-Type: text/html; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Grep doesn't count, you probably need listchars:


[math show=f]num=0[/math]


[listchars chars=[yourString]]
[showif " "="[char]"]
[math show=f]num=num+1[/math]
[/showif]
[/listchars]


[num]


Sincerely,
Ken Grome




> Does anyone have a quick [grep] to count the number of
> spaces in a string?



--Boundary-00=_q+rjK2rUAMPrN58-- Associated Messages, from the most recent to the oldest:

    
  1. why start a new thread the official way, --- WAS: Re: [WebDNA] Quick grep question (John Butler 2009)
  2. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  3. Re: [WebDNA] Quick grep question ("Dan Strong" 2009)
  4. Re: [WebDNA] Quick grep question (Donovan Brooke 2009)
  5. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  6. Re: [WebDNA] Quick grep question (Donovan Brooke 2009)
  7. Re: [WebDNA] Quick grep question (Kenneth Grome 2009)
  8. Re: [WebDNA] Quick grep question (Patrick McCormick 2009)
  9. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  10. Re: [WebDNA] Quick grep question (Kenneth Grome 2009)
  11. [WebDNA] Quick grep question (Patrick McCormick 2009)
  12. Re: [WebDNA] Quick Grep question (Govinda 2009)
  13. Re: [WebDNA] Quick Grep question (Steve Craig 2009)
  14. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  15. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  16. Re: [WebDNA] Quick Grep question (William DeVaul 2009)
  17. Re: [WebDNA] Quick Grep question (Steve Craig 2009)
  18. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  19. [WebDNA] Quick Grep question (Steve Craig 2009)
--Boundary-00=_q+rjK2rUAMPrN58 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Grep doesn't count, you probably need listchars: [math show=f]num=0[/math] [listchars chars=[yourString]] [showif " "="[char]"] [math show=f]num=num+1[/math] [/showif] [/listchars] [num] Sincerely, Ken Grome > Does anyone have a quick [grep] to count the number of > spaces in a string? --Boundary-00=_q+rjK2rUAMPrN58 Content-Type: text/html; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Grep doesn't count, you probably need listchars:


[math show=f]num=0[/math]


[listchars chars=[yourString]]
[showif " "="[char]"]
[math show=f]num=num+1[/math]
[/showif]
[/listchars]


[num]


Sincerely,
Ken Grome




> Does anyone have a quick [grep] to count the number of
> spaces in a string?



--Boundary-00=_q+rjK2rUAMPrN58-- Kenneth Grome

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:Has this happened to you? (1997) verify online (1997) RE: Credit card processing - UK (1997) Calendar (1997) Confirming a bug/oddity (2003) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) Revisit: speed test (2002) triggers.db (1999) WC Database Format (1997) Webcat XML/XSLT Performance vs. static Html (2006) WebDNA 4.5.1 Now Available (2003) [ModDate] & [ModTime] ? (1997) Deleting Orders (1997) Problems getting parameters passed into email. (1997) Fun with Dates - finally resolved but.... (1997) WCS Newbie question (1997) Multiple security dbs (1997) WebMerchant 1.6 and https (1997) WebCatalog NT (1996) Authorize.net for dummies (2003)