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 = 45094
interpreted = N
texte = Maybe [grep search=^ *&replace=]also you might want to consider stripping all whitespaces....it can look like this:[grep search=[raw]^[:space:]*[/raw]&replace=]Gyuridale's stuff wrote:> 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)
Maybe [grep search=^ *&replace=]also you might want to consider stripping all whitespaces....it can look like this:[grep search=[raw]^[:space:]*[/raw]&replace=]Gyuridale's stuff wrote:> 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:

[SearchString] problem with [search] context (1997) Attention all list readers (1997) Date Time Oddness (1999) WebDelivery: One step closer !! (1997) Proper file locations (1997) Cancel Subscription (1996) Using [showif] within [lineitems] [code fragment] (2000) Thanks Grant (1997) Off-topic: Bat guano investors ... (2005) ACGI processing for .html (1997) when is date system date or order date? (1997) Webten + Webcat running smooth (1998) Putting a page between checkout and invoice (1999) Upgrading 2.1 (2000) HELP WITH DATES (1997) [if] and [showif] - A solution (2002) range vs greater than/less than (2003) Databases (2000) Major bug report on rootbeer (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)