Re: [WebDNA] Grep and "?"

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109096
interpreted = N
texte = Try this .... = [text]incomingString=3Dabcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+`-=3D{}|[]\:= ";'<>?,./ 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ[/text] Note the carriage return in the string Expected result: 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ [text]cleanedString=3D[grep = search=3D[URL][^a-zA-Z0-9][/URL]&replace=3D][incomingString][/grep][/text]= incomingString=3D[incomingString] cleanedString=3D[cleanedString] If you want to exclude a character such as a dash or underscore just add = it in after the 9, ie [^a-zA-Z0-9_-] Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 18/05/2012, at 7:10 AM, Cristi=E1n Tapia wrote: > 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. >=20 > Thanks for any help! >=20 > Regards, > --------------------------------------------------- > Cristi=E1n Tapia Smith > Lemon Internet S.A. > ctapia@lemongroup.cl > http://www.lemongroup.cl > Antonia L=F3pez de Bello 172, Of. 801 > Fono: +562-7777542 > Santiago, Chile. >=20 > --------------------------------------------------------- > 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 > Bug Reporting: support@webdna.us 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)
Try this .... = [text]incomingString=3Dabcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+`-=3D{}|[]\:= ";'<>?,./ 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ[/text] Note the carriage return in the string Expected result: 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ [text]cleanedString=3D[grep = search=3D[url][^a-zA-Z0-9][/URL]&replace=3D][incomingString][/grep][/text]= incomingString=3D[incomingString] cleanedString=3D[cleanedString] If you want to exclude a character such as a dash or underscore just add = it in after the 9, ie [^a-zA-Z0-9_-] Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 18/05/2012, at 7:10 AM, Cristi=E1n Tapia wrote: > 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. >=20 > Thanks for any help! >=20 > Regards, > --------------------------------------------------- > Cristi=E1n Tapia Smith > Lemon Internet S.A. > ctapia@lemongroup.cl > http://www.lemongroup.cl > Antonia L=F3pez de Bello 172, Of. 801 > Fono: +562-7777542 > Santiago, Chile. >=20 > --------------------------------------------------------- > 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 > Bug Reporting: support@webdna.us Stuart Tremain

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:

creating a 60 fields database (1997) Changes to the List (1997) Pithy questions on webcommerce & siteedit (1997) Trouble with formula.db (1997) I give up!! (1997) Running a store on BOTH http and https (1998) WebCat2b12plugin - [search] is broken ... not! (1997) How true is this? (1999) [date] tag not working on mac 4.0.1 (2000) Search in 2 or more catalogs (1997) WebCat2final1 crashes (1997) WebCatalog not running after upgrade (2000) Re:no [search] with NT (1997) with Link i need to (1997) Shopping Cart variation... (1997) learning PHP (2007) WebCat2 - Getting to the browser's username/password data (1997) Location of Browser Info.txt file (1997) OH MY GOD! (1998) image attachment (2002)