grep twice or a better way....

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69470
interpreted = N
texte = I have a page where short summaries of posted articles are shown. Currently some folks embed youtube videos as the first item in their posts. They were doing this with images, but that I was able to deal with. images: I use the following grep within my code to strip out any instance of having an image appear in this summary..... [getchars start=1&end=150][grep search=]*)&replace=][blogtext][/grep][/getchars] embed a video: If they did embed a youtube video (via tinymce editor) this would be an example of the code I'm trying to strip out of these summary pages: Since I'm pulling just the first 150 characters for the summary I'm having grief even if I try this: [getchars start=1&end=150][grep search=]*)>&replace=][blogtext][/grep][/getchars] The above code does enough to NOT show the video in the summary pages, buts it leaves remnants of the entire embed string. Any other ways I could maybe strip out all image or embed code as I pull the text for these summary pages? thanks Lester __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: grep twice or a better way.... ( Donovan Brooke 2007)
  2. Re: grep twice or a better way.... ( Lester 2007)
  3. Re: grep twice or a better way.... ( "Olin Lagon" 2007)
  4. Re: grep twice or a better way.... ( Lester 2007)
  5. Re: grep twice or a better way.... ( "Dan Strong" 2007)
  6. grep twice or a better way.... ( Lester 2007)
I have a page where short summaries of posted articles are shown. Currently some folks embed youtube videos as the first item in their posts. They were doing this with images, but that I was able to deal with. images: I use the following grep within my code to strip out any instance of having an image appear in this summary..... [getchars start=1&end=150][grep search=]*)&replace=][blogtext][/grep][/getchars] embed a video: If they did embed a youtube video (via tinymce editor) this would be an example of the code I'm trying to strip out of these summary pages: Since I'm pulling just the first 150 characters for the summary I'm having grief even if I try this: [getchars start=1&end=150][grep search=]*)>&replace=][blogtext][/grep][/getchars] The above code does enough to NOT show the video in the summary pages, buts it leaves remnants of the entire embed string. Any other ways I could maybe strip out all image or embed code as I pull the text for these summary pages? thanks Lester __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/ Lester

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:

SQL Query Question (2001) Variables for chat (1997) Help formatting search results w/ table (1997) [WebDNA] Host List (2010) sort problems....bug or brain fart? (1997) all records returned. (1997) OFF TOPIC - sendmail problem (2003) Error 11 (1996) Showif (2000) How to Sort Summ data ? (1997) DrWatson Error! (1999) First postarg not taking in $Commands (1997) can WC render sites out? (1997) Re:Problem displaying search result (1997) Not really WebCat (1997) [WebDNA] Should I be able to use [setmimeheader =?UTF-8?Q?name=3DContent-Type=20=3F?= (2018) Stopping NT WebCat service (1998) Globals Problem and now can't close databases (2003) Search all Fields in a db (1997) Separate SSL Server (1997)