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 articlesare shown.Currently some folks embed youtube videos as the firstitem in their posts.They were doing this with images, but that I was ableto deal with.images:I use the following grep within my code to strip outany instance of having an image appear in thissummary.....[getchars start=1&end=150][grepsearch=
]*) &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 tostrip out of these summary pages:
Since I'm pulling just the first 150 characters forthe summary I'm having grief even if I try this:[getchars start=1&end=150][grepsearch=
]*)>&replace=][blogtext][/grep][/getchars]The above code does enough to NOT show the video inthe summary pages, buts it leaves remnants of theentire embed string.Any other ways I could maybe strip out all image orembed code as I pull the text for these summary pages?thanksLester__________________________________________________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:
I have a page where short summaries of posted articlesare shown.Currently some folks embed youtube videos as the firstitem in their posts.They were doing this with images, but that I was ableto deal with.images:I use the following grep within my code to strip outany instance of having an image appear in thissummary.....[getchars start=1&end=150][grepsearch=]*) &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 tostrip out of these summary pages: Since I'm pulling just the first 150 characters forthe summary I'm having grief even if I try this:[getchars start=1&end=150][grepsearch=]*)>&replace=][blogtext][/grep][/getchars]The above code does enough to NOT show the video inthe summary pages, buts it leaves remnants of theentire embed string.Any other ways I could maybe strip out all image orembed code as I pull the text for these summary pages?thanksLester__________________________________________________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:
BUG NOTICE: (2003)
Emailer port change (1997)
SSL and Webcat Authentication with IIS 5.0 on Win2K box (2000)
Emailing html (1998)
ShowIf variables (1997)
quitting (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
If Empty ? (1997)
Tracking (2004)
WebCat with WebTen (1998)
Make sure I understand this??? (1997)
Cookies not setting on IE (2002)
General Purpose Database utility ????? (2003)
Solution:' add to cart ' or ' sku ' problem (1998)
Changes to [ReturnRaw] in 3.0 (1998)
WebCat2 - Getting to the browser's username/password data (1997)
[WebDNA] To all WebDNA loyal supporters (2008)
Encrypting WebDNA Templates (1999)
WebDelivery downloads alias, not original ? (1997)
searching twice on same field (1998)