Re(4): & in grep

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51112
interpreted = N
texte = >Well, this is positively evil, but works: > >[grep search=#&replace=%26] >[grep search=traduire.([0-9A-Za-z]*)&replace=(include >file=../div/traduction.inc#atraduire=[interpret][lng][/interpret]-\1%5D] >traduire=test1 >
>traduire=test2 traduire=test3 >[/grep] >[/grep]if is evil because as soon as I replace the first ( by %5B then it breaks again !there is something wrong with the grep context when it contains special characters like [ ] or &What can be done for that ?L. ------------------------------------------------------------- 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(4): & in grep (laurent pladys 2003)
  2. Re(2): Re(4): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (l.bache@interacti-system.fr (Laurent Bache) 1998)
  3. Re: Re(4): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (Will Starck 1998)
>Well, this is positively evil, but works: > >[grep search=#&replace=%26] >[grep search=traduire.([0-9A-Za-z]*)&replace=(include >file=../div/traduction.inc#atraduire=[interpret][lng][/interpret]-\1%5D] >traduire=test1 >
>traduire=test2 traduire=test3 >[/grep] >[/grep]if is evil because as soon as I replace the first ( by %5B then it breaks again !there is something wrong with the grep context when it contains special characters like [ ] or &What can be done for that ?L. ------------------------------------------------------------- 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/ laurent pladys

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:

[dos] command question (1997) Part 2 - [showif] if variable exists (1998) RE: Displaying Location (1997) FREE Stuff .. (2003) searchable list archive (1997) Size limit for tmpl editor ? (1997) [feature req?]DeleteFounditem (2002) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Setting up shop (1997) $append (1998) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) [if] (2003) 2.0.1 new commands and contexts (1997) WebCatalog2 Feature Feedback (1996) [WriteFile] problems (1997) Protecting Images (2003) SOP for WebDNA talk (2004) WebCat2 - Getting to the browser's username/password data (1997) speed of TCPConnect? (1998) FlushDatabase Suggestion (1998)