[WebDNA] Grep everything and replace with asterisks?
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105083
interpreted = N
texte = This is a multi-part message in MIME format.------=_NextPart_000_00AC_01CAC9B2.86851230Content-Type: text/plain;charset="iso-8859-1"Content-Transfer-Encoding: quoted-printableI want to take a string and replace everything in it with asterisks. =None of these work:[grep search=3D[*]&replace=3D*]h4tdb!@6889gfd[/grep][grep search=3D[ ]&replace=3D*]h4tdb!@6889gfd[/grep][grep search=3D[url][ ][/url]&replace=3D*]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------=_NextPart_000_00AC_01CAC9B2.86851230Content-Type: text/html;charset="iso-8859-1"Content-Transfer-Encoding: quoted-printable
I want to take a string and replace =everything in=20it with asterisks. None of these work:
[grep=20search=3D[*]&replace=3D*]h4tdb!@6889gfd[/grep]
[grep search=3D[=20]&replace=3D*]h4tdb!@6889gfd[/grep]
[grep search=3D[url][=20][/url]&replace=3D*]h4tdb!@6889gfd[/grep]
I know how to do a grep that replaces =all letters=20and numbers, but what about other symbols and such (@, =etc.)?
I suppose I could do a [countchars] on =the input=20then replace with that many asterisks, but it just seems like this is =exactly=20the kind of job that grep is for.
Not terribly important, but now I'm =curious how it=20can be done.
Thanks,
-Dan
------=_NextPart_000_00AC_01CAC9B2.86851230--
Associated Messages, from the most recent to the oldest:
This is a multi-part message in MIME format.------=_NextPart_000_00AC_01CAC9B2.86851230Content-Type: text/plain;charset="iso-8859-1"Content-Transfer-Encoding: quoted-printableI want to take a string and replace everything in it with asterisks. =None of these work:[grep search=3D[*]&replace=3D*]h4tdb!@6889gfd[/grep][grep search=3D[ ]&replace=3D*]h4tdb!@6889gfd[/grep][grep search=3D
[url][ ][/url]&replace=3D*]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------=_NextPart_000_00AC_01CAC9B2.86851230Content-Type: text/html;charset="iso-8859-1"Content-Transfer-Encoding: quoted-printable
I want to take a string and replace =everything in=20it with asterisks. None of these work:
[grep=20search=3D[*]&replace=3D*]h4tdb!@6889gfd[/grep]
[grep search=3D[=20]&replace=3D*]h4tdb!@6889gfd[/grep]
[grep search=3D[url][=20][/url]&replace=3D*]h4tdb!@6889gfd[/grep]
I know how to do a grep that replaces =all letters=20and numbers, but what about other symbols and such (@, =etc.)?
I suppose I could do a [countchars] on =the input=20then replace with that many asterisks, but it just seems like this is =exactly=20the kind of job that grep is for.
Not terribly important, but now I'm =curious how it=20can be done.
Thanks,
-Dan
------=_NextPart_000_00AC_01CAC9B2.86851230--
"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:
Explorer 3.0/ Access Denied! (1997)
Simple Store (2000)
SiteGuard Use Question (1997)
Macauth: Dates and No Scripting... (1997)
How true is this? (1999)
Read and weep (2003)
FREE Web Server Monitor FREE (1997)
[random] only for 1-100??? (1997)
Problems getting parameters passed into email. (1997)
[format 40s]text[/format] doesn't work (1997)
WebDNA + MLS (2006)
Emailer stops on Win 2000 (2002)
Limitations on fields? Server is crashing (1997)
Help!!!! (1997)
Windows Install issue (2003)
unable to launch acgi in WebCat (1997)
Download URL & access on the fly ? (1997)
Web Catalog 2 demo (1997)
WC Database Format (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997)