Re: [WebDNA] Grep everything and replace with asterisks?
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105085
interpreted = N
texte = [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 ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu-------------------------------------------
Associated Messages, from the most recent to the oldest:
[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 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:
Version 4 (2000)
Sort Order on a page search (1997)
WebCat2b13MacPlugIn - [include] (1997)
Interfacing WebMerchant to www.fedex.com (1997)
[listfiles] problems (1997)
External Images (1998)
[click][/click] (1999)
RE: Purchased cart being overwritten - still !?? (1997)
Using WebCat for product info requests (1997)
table max? (2001)
Problems with ErrorLog on Linux (2000)
Templates for Customer Database? (1997)
Multiple 'Users.db' files not possible (1997)
Just Testing (1997)
Nested tags count question (1997)
[BoldWords] WebCat.acgib15Mac (1997)
General Purpose Database utility ????? (2003)
Setting up shop (1997)
Multiple prices (1997)
Writing to disk (1999)