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 = 45097
interpreted = N
texte = Hi Gyuri,On Monday, November 11, 2002, at 11:02 PM, Gyuri wrote:> Maybe [grep search=^ *&replace=] > > also you might want to consider stripping all whitespaces....thanks for the reply, I am already converting internal spaces to _ which suits this use better. > it can look like this: > > [grep search=[raw]^[:space:]*[/raw]&replace=]But I see from both yours and John's reply the leading char match is ^> Gyuri > > dale's stuff wrote:Thanks!Dale>> hi, >> >> 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? >> >> Thanks >> >> Dale ------------------------------------------------------------- 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)
Hi Gyuri,On Monday, November 11, 2002, at 11:02 PM, Gyuri wrote:> Maybe [grep search=^ *&replace=] > > also you might want to consider stripping all whitespaces....thanks for the reply, I am already converting internal spaces to _ which suits this use better. > it can look like this: > > [grep search=[raw]^[:space:]*[/raw]&replace=]But I see from both yours and John's reply the leading char match is ^> Gyuri > > dale's stuff wrote:Thanks!Dale>> hi, >> >> 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? >> >> Thanks >> >> Dale ------------------------------------------------------------- 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/ dale's stuff

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:

Maybe Off Topic -- OS X/UNIX Shell Scripts? (2003) [WebDNA] Problem with Sendmail (2012) Accepting credit cards (1997) Help!!!! Purchases not going through! FIXED! (1997) customer info (2001) [ot] Any One Want A WebDNA Billing Program? (2003) 2.01 upgrade problems (1997) trouble with [shownext] (2000) Cart ID Duplication (2001) 2 databases (1998) Universal root for WC errors? (1997) Re:quit command on NT (1997) [Sum] function? (1997) Text data with spaces in them... (1997) migrating from MacOS to unix (2000) [WebDNA] feature requests (2008) Running WebCat from a CD-ROM (1997) [isfolder] and [filename] (1997) carriage returns in data (1997) Post size Limit? (1998)