Re: [WebDNA] Grep and "?"

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109093
interpreted = N
texte = > Hello! >=20 > I'm trying to remove some non alphabetical characters using grep. I've = managed to remove most of them (using one [grep] per character) except = for the question mark character. If I use "?" or "%3F" the template with = the code is not processed but downloaded to my computer instead. = Example: >=20 > [grep search=3D%3F&replace=3D&ignorecase=3DT]Hi folks, how are you = doing?[/grep] >=20 > OR >=20 > [grep search=3D?&replace=3D&ignorecase=3DT]Hi folks, how are you = doing?[/grep] >=20 > In both cases I get the .tpl file downloaded to my desktop. I suspect = that question mark is a wildcard that grep uses to match certain = strings, so I don't know if anyone out there knows how to achieve this = or give me a better [grep] code to remove any character but letters. try [grep search=3D[url]?[/url]&replace=3D&ignorecase=3DT]Hi folks, how = are you doing?[/grep] does that work? Meanwhile..=20 using that many greps to replace one char might be inefficient .. = perhaps you could use just one wrapper and do it all in one stroke, = with: [convertChars] ? (and have one record in your [convertChars] db = per char that you want to swap out.) -G= Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Grep and "?" (Stuart Tremain 2012)
  2. Re: [WebDNA] Grep and "?" (Govinda 2012)
  3. [WebDNA] Grep and "?" (=?ISO-8859-1?Q?Cristi=E1n_Tapia?= 2012)
> Hello! >=20 > I'm trying to remove some non alphabetical characters using grep. I've = managed to remove most of them (using one [grep] per character) except = for the question mark character. If I use "?" or "%3F" the template with = the code is not processed but downloaded to my computer instead. = Example: >=20 > [grep search=3D%3F&replace=3D&ignorecase=3DT]Hi folks, how are you = doing?[/grep] >=20 > OR >=20 > [grep search=3D?&replace=3D&ignorecase=3DT]Hi folks, how are you = doing?[/grep] >=20 > In both cases I get the .tpl file downloaded to my desktop. I suspect = that question mark is a wildcard that grep uses to match certain = strings, so I don't know if anyone out there knows how to achieve this = or give me a better [grep] code to remove any character but letters. try [grep search=3D[url]?[/url]&replace=3D&ignorecase=3DT]Hi folks, how = are you doing?[/grep] does that work? Meanwhile..=20 using that many greps to replace one char might be inefficient .. = perhaps you could use just one wrapper and do it all in one stroke, = with: [convertchars] ? (and have one record in your [convertchars] db = per char that you want to swap out.) -G= Govinda

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:

2nd WebCatalog2 Feature Request (1996) Newbie Tax Question (1997) Help formatting search results w/ table (1997) [WebDNA] Poll: Cloud hosting (2016) Progress !! WAS: Trouble with formula.db (1997) [format 40s]text[/format] doesn't work (1997) Size option in Storebuilder (2005) Anyone have an invoicing system? (1999) Netscape for MacOS X (2001) WC1.6 to WC2 date formatting (1997) cookie based login process (2004) webcat method for waiting specific amount of time? (2000) Multiple prices (1997) Document Contains No Data! (1997) Getting total number of items ordered (1997) TCP Connect (2003) SiteEdit NewFile.html ? (1997) If search results are blank... (2003) Closing databases (2003) [Announce]: Web server security and password protection (1997)