Re: Grepping URL-Encoded Text

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55162
interpreted = N
texte = Of course, that's not a documented "feature"... Time to update the grep engine and/or its documentation. -----Original Message----- From: Justin Carroll Sent: 02 Jan 2004 13:59:14 -0500 To: (WebDNA Talk) Subject: Re: Grepping URL-Encoded Text Incredible. It worked. Thank you very much. Justin Carroll On Saturday, February 20, 1943, Marc Kaiwi wrote: >Sounds silly but try escaping every search string character: [Grep >search=\%\0\D\%\0\A &replace=\n][myTest][/grep] > >Good Luck, > >MK > > >On Friday, January 2, 2004, at 10:20 AM, Justin Carroll wrote: > >> I have a form with a textarea (txtComment) and I need to be able to >> turn all the carriage returns into "\n"'s and stored in a database to >> be output via a javascript alert box. >> >> Let's say the user types this in txtComment (minus the dashes): >> ---------- >> Hello >> >> Goodbye >> ---------- >> In DNA I code this: [text]myTest=[url][txtComment][/url][/text] >> The ouput of [myTest] is now this: Hello%0D%0A%0D%0AGoodbye >> >> In DNA I try this: >> [grep search=%0D%0A&replace=\n][myTest][/grep] >> >> Nothing happens. I need it to be stored in the database like this: >> Hello\n\nGoodbye >> >> Please help. I'm obviously doing something wrong. Maybe I should >> approach this differently altogether? Thanks. >> >> Justin Carroll >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >Signed: Marc Kaiwi > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grepping URL-Encoded Text ( Marc Kaiwi 2004)
  2. Re: Grepping URL-Encoded Text ( devaulw@onebox.com 2004)
  3. Re: Grepping URL-Encoded Text ( Justin Carroll 2004)
  4. Re: Grepping URL-Encoded Text ( Marc Kaiwi 2004)
  5. Grepping URL-Encoded Text ( Justin Carroll 2004)
Of course, that's not a documented "feature"... Time to update the grep engine and/or its documentation. -----Original Message----- From: Justin Carroll Sent: 02 Jan 2004 13:59:14 -0500 To: (WebDNA Talk) Subject: Re: Grepping URL-Encoded Text Incredible. It worked. Thank you very much. Justin Carroll On Saturday, February 20, 1943, Marc Kaiwi wrote: >Sounds silly but try escaping every search string character: [Grep >search=\%\0\D\%\0\A &replace=\n][myTest][/grep] > >Good Luck, > >MK > > >On Friday, January 2, 2004, at 10:20 AM, Justin Carroll wrote: > >> I have a form with a textarea (txtComment) and I need to be able to >> turn all the carriage returns into "\n"'s and stored in a database to >> be output via a javascript alert box. >> >> Let's say the user types this in txtComment (minus the dashes): >> ---------- >> Hello >> >> Goodbye >> ---------- >> In DNA I code this: [text]myTest=[url][txtComment][/url][/text] >> The ouput of [myTest] is now this: Hello%0D%0A%0D%0AGoodbye >> >> In DNA I try this: >> [grep search=%0D%0A&replace=\n][myTest][/grep] >> >> Nothing happens. I need it to be stored in the database like this: >> Hello\n\nGoodbye >> >> Please help. I'm obviously doing something wrong. Maybe I should >> approach this differently altogether? Thanks. >> >> Justin Carroll >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >Signed: Marc Kaiwi > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ devaulw@onebox.com

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:

Return records from another (1997) [SearchString] problem with [search] context (1997) multiple search commands (1997) default value from Lookup (was Grant, please help me) (1997) The old multiple selection bit (2000) WebCat2b15MacPlugin - [protect] (1997) paymethod=cc allows all zeros (1999) synching databases on multiple servers (1997) Email Formatting and Encryption (1998) autosensing lanague selection (1997) AAgghh!! Help, please. SSL strikes again. (1997) problems with 2 tags (1997) carriage returns in data (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Help name our technology! I found it (1997) WebTrends (2002) Can WebDNA do this? (2000) Bug reported on June 6, 2000 still not fixed ... (2000) RE: Purchased cart being overwritten - still !?? (1997) FEW QUESTIONS (1997)