Re: grep question - how to strip spaces from the beginning ofa string?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45110
interpreted = N
texte = >on 11/11/02 4:08 PM, John Peacock at jpeacock@rowman.com so noted... > >>> Reading past messages I see an example John P. gave for stripping spaces >>> from the end of a string using - [grep search= *$&replace=][string][/grep] >>> where the $ denotes the line end charactor. I wonder is there something >>> similar for the line beginning? >> >> [grep search=^ *&replace=][string][/grep] > >Now if only the match at start of string and match at end of string >metacharacters actually *worked* with WebDNA's pseudo-grep. : ( That's one reason why I think it would be relatively respectful of SMSI to actually provide us with some documentation on their particular version of grep. They have side-stepped this responsibility for way too long as it is ....My understanding of this issue is that they licensed some grep code from another software company (or maybe they found a free source of grep code) but they never bothered to tell us where they got it or WHERE ARE THE DOCS for this particular version of grep???Simply saying we added grep to the webdna contexts does nothing to explain which version they added, or how this particular version actually works ... :( Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: grep question - how to strip spaces from the beginning ofa string? (Gyuri 2002)
  2. Re: grep question - how to strip spaces from the beginning ofa string? (John Peacock 2002)
  3. Re: grep question - how to strip spaces from the beginning ofa string? (Kenneth Grome 2002)
  4. Re: grep question - how to strip spaces from the beginning ofa string? (Gyuri 2002)
  5. Re: grep question - how to strip spaces from the beginning ofa string? (dale's stuff 2002)
  6. Re: grep question - how to strip spaces from the beginning ofa string? (dale's stuff 2002)
  7. Re: grep question - how to strip spaces from the beginning ofa string? (John Peacock 2002)
  8. Re: grep question - how to strip spaces from the beginning ofa string? (Gyuri 2002)
>on 11/11/02 4:08 PM, John Peacock at jpeacock@rowman.com so noted... > >>> Reading past messages I see an example John P. gave for stripping spaces >>> from the end of a string using - [grep search= *$&replace=][string][/grep] >>> where the $ denotes the line end charactor. I wonder is there something >>> similar for the line beginning? >> >> [grep search=^ *&replace=][string][/grep] > >Now if only the match at start of string and match at end of string >metacharacters actually *worked* with WebDNA's pseudo-grep. : ( That's one reason why I think it would be relatively respectful of SMSI to actually provide us with some documentation on their particular version of grep. They have side-stepped this responsibility for way too long as it is ....My understanding of this issue is that they licensed some grep code from another software company (or maybe they found a free source of grep code) but they never bothered to tell us where they got it or WHERE ARE THE DOCS for this particular version of grep???Simply saying we added grep to the webdna contexts does nothing to explain which version they added, or how this particular version actually works ... :( Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ 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:

How true is this? (1999) Target wit redirect (1998) formula??? (2000) suffix mapping for NT? (1997) quantity minimum problem (1997) ShowNext Command (1997) sorting... (2003) Possible Bug in 2.0b15.acgi (1997) Summing fields (1997) First n words (2000) [WebDNA] A universal version of WebDNA ... (2008) WebDNA vs PHP (2003) Grepping a hostname (2003) Requiring that certain fields be completed (1997) Nested tags count question (1997) shipcost (1997) WebCat2: Found Items syntax, etc. (1997) [MATH SHOW=F]. show=f does what? (1999) More on the email templates (1997) shell question / Unix guide (2004)