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:
[SHOWIF AND/OR] (1997)
PCS Frames (1997)
Forcing a NEWCART (1997)
NetSplat and WebCat2 (1997)
off topic fetch vs PCS photomaster (1997)
Reversed words (1997)
Re2: frames & carts (1997)
Client-side Image Maps and WebCat? (1998)
carriage returns in data (1997)
Calendar using WebCatalog? (1997)
primer/tutorial question (2004)
HELP WITH DATES (1997)
Error: Error: expected [/APPLICATION] ??? (1998)
[subtotal] and others (1997)
Follow-Up to: Removing [showif] makes a big difference in speed (1997)
rotating thumbnails (1997)
Help! WebCat2 bug (1997)
Scoping rules in WebDNA 4.0 (2000)
shipping costs (1997)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)