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 OrdodyObjects 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:
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 OrdodyObjects 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:
WC2b12: Yes, Formulas.db is for real (1997)
Memory Leak (2000)
[WebDNA] UTF-8 encoding issues (2010)
WebDNA 4.5.1 Now Available (2003)
WebCat2 - storing unformatted date data? (1997)
[WebDNA] WebDNA Showcase? (2008)
Proper file locations (1997)
Inventory Adjustment (2000)
Frames and cart values (1998)
Snake Bites (1997)
Setting up shop (1997)
Num Sort Descending (2004)
multiple search commands (1997)
FYI: SmithMicro Financial Report (2000)
WebCatalog stalls (1998)
purchase plugin (1996)
RE: OK, here goes... (1997)
Major Security Hole IIS NT (1998)
[isfolder] and [filename] (1997)
Strange intermittent WebDNA problems (2008)