Re: Grepping URL-Encoded Text

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55160
interpreted = N
texte = 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/ 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)
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/ Marc Kaiwi

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:

[WebDNA] Crashing Database (2011) form data submission gets truncated (1997) Help! Missing [showif] or [hideif] (2000) Formatting ModDate (2000) default value from Lookup (was Grant, please help me) (1997) two unique banners on one page (1997) Ampersand (1997) WebCat2b15MacPlugin - [protect] (1997) WebMerchant 1.6 and SHTML (1997) apostrophe in search item (1997) Quickie question on the email templates (1997) Problem 2: Prefs file... (1997) [WebDNA] Funding for a new v7+ commerce system? (2011) Merging databases (1997) Append - form based command (1999) [WebDNA] Restart WebDNA (2013) typhoon... (1997) Thanks ! (1997) [SQL] on MacOs to SQL Server ... HOW TO? (2000) Solution help needed (1998)