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:
PIXO support (1997)
WebDNA 5.0 Questions (2003)
Re:Emailer setup (1997)
WCS Newbie question (1997)
Combining search criteria in a context? (1998)
For Sale: WebTen 2.x and WebCat 2.x (2000)
[WebDNA] [OT] Apple iPad (2010)
New WebMerchant/Mac beta available (1997)
Database Connectivity (1999)
Nested searches (1998)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Robert Minor duplicate mail (1997)
Applescript, WebDNA, and PDF (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Uploading Files and Descriptions W* (2000)
Comments in db? (1997)
RE: Can a database get stomped by simultaneous access? (1997)
textarea inputs and returns (1999)
Quitting WebMerchant ? (1997)
[WebDNA] What Webcatalog with Itools?? (2008)