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 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:
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 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:
Setting up WebCatalog with Retail Pro data (1996)
Fulfillment emails not emailing after upgrade (2002)
A quickie question (1997)
FlushDatabase Suggestion (1998)
Looking up two prices in database? (1997)
major search problem (1998)
Summing a field full of numbers ... (1997)
webcat NT with [dos] command (1997)
URGENT now: Another Bug (2002)
Expanding the Product Database (2000)
Time/date formatting %X doesn't work ... (1997)
Plugin or CGI or both (1997)
webcatalog 2.1.3 ACGI Weirdness? (1998)
case number with spaces. (2000)
Can I invoke an ssi plugin from within a webcat page (1997)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
NT Email Stops Sending (2000)
Weird problems with [SHOWIF]s (1997)
Date problem still... (2004)
Shipping Calculation Problem (1997)