Re: [WebDNA] Grep everything and replace with asterisks?
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105090
interpreted = N
texte = Enough is enough, I am writing a letter of complaint to the CEO of grep :-)Thanks for the nudge in the right direction, guys. Obviously my grep-fu is weak and my google-fu is weaker.-Dan--------------------------------------------------From: "Bob Minor"
Sent: Monday, March 22, 2010 12:50 PMTo: Subject: Re: [WebDNA] Grep everything and replace with asterisks?> Actually this is pretty standard grep, to grep a period one would normally > have to \. to escape the . and actually look for a period>> On Mar 22, 2010, at 1:44 PM, Dan 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>>
Associated Messages, from the most recent to the oldest:
Enough is enough, I am writing a letter of complaint to the CEO of grep :-)Thanks for the nudge in the right direction, guys. Obviously my grep-fu is weak and my google-fu is weaker.-Dan--------------------------------------------------From: "Bob Minor" Sent: Monday, March 22, 2010 12:50 PMTo: Subject: Re: [WebDNA] Grep everything and replace with asterisks?> Actually this is pretty standard grep, to grep a period one would normally > have to \. to escape the . and actually look for a period>> On Mar 22, 2010, at 1:44 PM, Dan 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>>
"Dan Strong"
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:
Tax on Shipping question (1998)
WordBreak Qestion (part 2) (1998)
Fun with Dates - finally resolved but.... (1997)
WebCat2 - Getting to the browser's username/password data (1997)
Various Problems (1997)
WebCat2b13 Command Reference Doc error (1997)
Setting up the server (1997)
unable to launch acgi in WebCat (1997)
WC2b15 File Corruption (1997)
More on the email templates (1997)
sql protect routine (2005)
RE: anyone know how to restart dbserver on NT automatically (1999)
add to cart within a page? (1997)
FoundItems Question (1998)
Bug Report, maybe (1997)
[WebDNA] [MATH] & formatting (2015)
WebCatalog dying in WebTen Revisited (1998)
shipping costs (1997)
WYSIWYG HTML editor for use in browser (2001)
E-mailer error codes (1997)