Re: [WebDNA] Grep everything and replace with asterisks?
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105087
interpreted = N
texte = You asked for elegance, looks pretty elegant to me...Glad I could helpDan Strong wrote:> Works, but wow is that counter-intuitive or what? I would see that and think > that it literally is looking for periods to replace... ah the wonders of > [grep]. Thanks, Marc.> > -Dan> > --------------------------------------------------> From: "Marc Thompson"
> Sent: Monday, March 22, 2010 11:39 AM> To: > Subject: Re: [WebDNA] Grep everything and replace with asterisks?> >> [grep search=.&replace=*]h4tdb!@6889gfd[/grep]>>>> Dan Strong wrote:>>> I want to take a string and replace everything in it with asterisks.>>> None of these work:>>>>>> [grep search=[*]&replace=*]h4tdb!@6889gfd[/grep]>>> [grep search=[ ]&replace=*]h4tdb!@6889gfd[/grep]>>> [grep search=[url][ ][/url]&replace=*]h4tdb!@6889gfd[/grep]>>>>>> I know how to do a grep that replaces all letters and numbers, but what>>> about other symbols and such (@, etc.)?>>>>>> I suppose I could do a [countchars] on the input then replace with that>>> many asterisks, but it just seems like this is exactly the kind of job>>> that grep is for.>>>>>> Not terribly important, but now I'm curious how it can be done.>>>>>> Thanks,>>> -Dan>> -- >> ------------------------------------------->> Marc Thompson>> Software Engineer>> Media Solutions>> University Information Technology>> University of Utah>> 801.585.9264>> marc.thompson@utah.edu>> ------------------------------------------->> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288-- -------------------------------------------Marc ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu-------------------------------------------
Associated Messages, from the most recent to the oldest:
You asked for elegance, looks pretty elegant to me...Glad I could helpDan Strong wrote:> Works, but wow is that counter-intuitive or what? I would see that and think > that it literally is looking for periods to replace... ah the wonders of > [grep]. Thanks, Marc.> > -Dan> > --------------------------------------------------> From: "Marc Thompson" > Sent: Monday, March 22, 2010 11:39 AM> To: > Subject: Re: [WebDNA] Grep everything and replace with asterisks?> >> [grep search=.&replace=*]h4tdb!@6889gfd[/grep]>>>> Dan Strong wrote:>>> I want to take a string and replace everything in it with asterisks.>>> None of these work:>>>>>> [grep search=[*]&replace=*]h4tdb!@6889gfd[/grep]>>> [grep search=[ ]&replace=*]h4tdb!@6889gfd[/grep]>>> [grep search=[url][ ][/url]&replace=*]h4tdb!@6889gfd[/grep]>>>>>> I know how to do a grep that replaces all letters and numbers, but what>>> about other symbols and such (@, etc.)?>>>>>> I suppose I could do a [countchars] on the input then replace with that>>> many asterisks, but it just seems like this is exactly the kind of job>>> that grep is for.>>>>>> Not terribly important, but now I'm curious how it can be done.>>>>>> Thanks,>>> -Dan>> -- >> ------------------------------------------->> Marc Thompson>> Software Engineer>> Media Solutions>> University Information Technology>> University of Utah>> 801.585.9264>> marc.thompson@utah.edu>> ------------------------------------------->> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288-- -------------------------------------------Marc ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu-------------------------------------------
Marc Thompson
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:
[OT] : Chat Room on OSX (2003)
Format question WC Mac f3 (1997)
Comparing two fields so the match (1998)
RAM variables (1997)
Two prices in shoppingcart? (1997)
[WebDNA] plupload ? (2012)
Re:listfiles-looking for slick solution (1997)
New public beta available (1997)
[WebDNA] OT: How is this being done? Curious. (2009)
sendmail spaces (1997)
Re:Copyright ? (1997)
International Orders (1998)
[OT] Gateway and Merchant Fees! (2006)
WebCatalog2 Feature Feedback (1996)
Close-to Comparison Code (1998)
searchable list archive (1997)
Emailer setup (1997)
[ShowNext] (1997)
I have observed and I am gone. (1998)
WebCat2 - Getting to the browser's username/password data (1997)