Re: What's the grep?

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59874
interpreted = N
texte = This is off the top of my head and has not been tested: [grep search=TAGSTART(img [^>]*)&replace=<\1][grep search=<[^>]*>&replace=][grep search=<(img [^>]*)&replace=TAGSTART\1][STRING][/grep][/grep][/grep] The inner most grep protects image tags. The middle grep deletes HTML tags. The outer grep restores the image tags. Perhaps there is a more elegant method that ignores image tags versus other tags? Bill -----Original Message----- From: Kenneth Grome Sent: Thu, 4 Nov 2004 16:04:54 +0800 To: "WebDNA Talk" Subject: What's the grep? I need a grep context (or contexts) that will delete all the HTML tags *except* for image tags, can anyone help me? -- Sincerely, Kenneth Grome www.kengrome.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: What's the grep? ( devaulw@onebox.com 2004)
  2. Re: What's the grep? ( Kenneth Grome 2004)
  3. What's the grep? ( Kenneth Grome 2004)
This is off the top of my head and has not been tested: [grep search=TAGSTART(img [^>]*)&replace=<\1][grep search=<[^>]*>&replace=][grep search=<(img [^>]*)&replace=TAGSTART\1][STRING][/grep][/grep][/grep] The inner most grep protects image tags. The middle grep deletes HTML tags. The outer grep restores the image tags. Perhaps there is a more elegant method that ignores image tags versus other tags? Bill -----Original Message----- From: Kenneth Grome Sent: Thu, 4 Nov 2004 16:04:54 +0800 To: "WebDNA Talk" Subject: What's the grep? I need a grep context (or contexts) that will delete all the HTML tags *except* for image tags, can anyone help me? -- Sincerely, Kenneth Grome www.kengrome.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:

New Problem (1997) [WebDNA] Banner Adds (2009) Help name our technology! (1997) Sorry for the simple Question.. (1999) problems with 2 tags (1997) Globals Problem and now can't close databases (2003) combining strings (1997) acgi to plugin migration problems (2000) protect tag on NT IIS (1997) Displaying photo attached to first record (1997) japanese characters (1997) cart (1997) Same Table Opened Twice (2003) RE: protect tag on NT (1997) searchable list archive (1997) WebCommerce: Folder organization ? (1997) Anyone ever have this email problem? (2004) Setting up WebCatalog with Retail Pro data (1996) Re[2]: OT: Amazon Patents (2000) [WebDNA] Cannot get WebDNA and MySQL working. (2015)