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 = 45099
interpreted = N
texte = Sorry, I meant stripping all whitespaces*from the beginning* of the name. Of course, maybe a simple convertchars would solve all your needs here.Gy>> 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/ > >-- Gyuri Ordody Objects Online, Inc.------------------------------------------------------------- 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)
Sorry, I meant stripping all whitespaces*from the beginning* of the name. Of course, maybe a simple convertchars would solve all your needs here.Gy>> 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/ > >-- Gyuri Ordody Objects Online, Inc.------------------------------------------------------------- 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/ Gyuri

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:

Strange Crash (1998) WebCat2b15MacPlugin - [protect] (1997) [WebDNA] How can I update the webdna.ini file? (2012) webcat2b12 CGI -- Date comparisons (1997) Validation (2000) international time (1997) Hiding a subsection of text (2002) can WC render sites out? (1997) Hello??? (1997) Date search and sendmail (1997) Bug Report, maybe (1997) Claris HomePage messes up the code (1997) Re:What file? (1997) turning every 5th line red (1998) Custom WebCat Prefs ... (1997) Netscape v. IE (1997) Suggestions (1998) Showif ^ (2000) Bug in capitalize ... ? (2003) Virtual hosting and webcatNT (1997)