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 -0500To: (WebDNA Talk)Subject: Re: Grepping URL-Encoded TextIncredible. It worked. Thank you very much.Justin CarrollOn 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:
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 -0500To: (WebDNA Talk)Subject: Re: Grepping URL-Encoded TextIncredible. It worked. Thank you very much.Justin CarrollOn 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:
Mac 2.1b4 unknown error: BadSuffix (1997)
Fwd: mondomail and Webcat (2000)
Spaces in FormVariables (2001)
email address scrambling (2002)
Setting up shop (1997)
Math (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
How much is too much? I can never remember the answer. (2002)
Only charge card when product shipped ? (1997)
OT: 4.5 Unix License Value? (2004)
WebCat Sites Hanging (!) (2003)
Separate SSL Server (1997)
[format 40s]text[/format] doesn't work (1997)
Regarding PayPal (was Payments -> Bank Accounts) (2005)
OT: Site Test (2006)
form data submission gets truncated (1997)
Add a field to the error log? (1997)
WebCatalog for guestbook ? (1997)
Counting LineItems (2000)
no template caching (1997)