Re: Grep vs WebDNA: square brackets

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44565
interpreted = N
texte = I just enter the brackets in GREP without worrying about escaping them - seems to work fine .. As long as you donšt make a variable name or reserved word of course .. > Why does this: > > [raw]\[url=([^\]]*)\]([^\[]*)\[/url\][/raw] > > display just fine, and yet this: > > [grep search=[raw]\[url=([^\]]*)\]([^\[]*)\[/url\][/raw]&replace= href=\1>\2][sourceText][/grep] > > gives the error: > > ([^\[]*)\[/url\]Error: Error: expected [/GREP], but found [/raw] > instead[/raw]&replace=\2][sourceText] > > I know, I know, the brackets are fouling up the parser -- but how are we > supposed to create meaningful search expressions (which rely extensively on > square brackets) that don't bump heads with WebDNA (ditto)? > > Is there a recommended, consistent method for keeping WebDNA out of [grep]'s > way (or vice versa)? Sometimes [url] works, sometimes it crashes the page. > Sometimes [raw] works, sometimes it crashes the page. It's a real pain in > the ass to have to work these gotchas out on a search by search, element > by element basis. > > By the way, here's the fugly, kludgy search method that *does* work: > > [grep > search=\[url=([^[unurl]%5D[/unurl]]*)\]([^[unurl]%5B[/unurl]]*)\[/url\]&repl > ace=\2][sourceText][/grep] > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.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://search.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep vs WebDNA: square brackets (Rob Marquardt 2002)
  2. Re: Grep vs WebDNA: square brackets (Alain Russell 2002)
  3. Grep vs WebDNA: square brackets (Rob Marquardt 2002)
I just enter the brackets in GREP without worrying about escaping them - seems to work fine .. As long as you donšt make a variable name or reserved word of course .. > Why does this: > > [raw]\[url=([^\]]*)\]([^\[]*)\[/url\][/raw] > > display just fine, and yet this: > > [grep search=[raw]\[url=([^\]]*)\]([^\[]*)\[/url\][/raw]&replace= href=\1>\2][sourceText][/grep] > > gives the error: > > ([^\[]*)\[/url\]Error: Error: expected [/GREP], but found [/raw] > instead[/raw]&replace=\2][sourceText] > > I know, I know, the brackets are fouling up the parser -- but how are we > supposed to create meaningful search expressions (which rely extensively on > square brackets) that don't bump heads with WebDNA (ditto)? > > Is there a recommended, consistent method for keeping WebDNA out of [grep]'s > way (or vice versa)? Sometimes [url] works, sometimes it crashes the page. > Sometimes [raw] works, sometimes it crashes the page. It's a real pain in > the ass to have to work these gotchas out on a search by search, element > by element basis. > > By the way, here's the fugly, kludgy search method that *does* work: > > [grep > search=\[url=([^[unurl]%5D[/unurl]]*)\]([^[unurl]%5B[/unurl]]*)\[/url\]&repl > ace=\2][sourceText][/grep] > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.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://search.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://search.smithmicro.com/ Alain Russell

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:

Emailer (1997) WebCatalog2 Feature Feedback (1996) Suffix Slowdown? (2004) Finer than a second. (2001) test (2000) A simple email page? (1999) [url] (1997) Search inside Include (1998) [input] [/input] (1997) PCS Frames (1997) errormessages.db (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [WriteFile] problems (1997) Too Much Rootbeer Free Offer (1997) Testing the WebCat Email List Members (2000) Bug Report, maybe (1997) Multiple Ad databases? (1997) PIXO (1997) insert graphic in email (2000) Superfilous Characters (1998)