texte = I know jack about grep, though I'm planning to learn it. I *think* it's whatI want to use in this situation, but I'm open to any other options, too.I have to format some stories with WebCat and export them to a text file,and I need to cut some HTML tags and their contents out of stories if theyare present.The story bodies are stored as text files by a unique story ID (as[articleID].txt), but all the meta info (author, articleID, etc.) is storedin a WebCat db, and I'm pulling the story in via [include]. The bulk of theWebDNA on the page looks functionally like this:[search for stories][founditems][writefile file=...]some header infoblahblahblah[grep search=????&replace=][include file=path/to/[articleID].txt][/grep][/writefile]story: [articleID] was exported.
[/founditems][/search]How would I strip the following from a story:Anything between (and including the div tag):
I basically need (assuming [grep] is the best way to do this) the grepsearch for ???? in my [grep] context above.I'm open to other ways of doing this, but [convertWords] doesn't seem tohave a wild character scheme to use.Thanks!Steven--Steven JarvisWeb DeveloperThe Morning NewsNWAonline.net-------------------------------------------------------------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:
I know jack about grep, though I'm planning to learn it. I *think* it's whatI want to use in this situation, but I'm open to any other options, too.I have to format some stories with WebCat and export them to a text file,and I need to cut some HTML tags and their contents out of stories if theyare present.The story bodies are stored as text files by a unique story ID (as[articleID].txt), but all the meta info (author, articleID, etc.) is storedin a WebCat db, and I'm pulling the story in via [include]. The bulk of theWebDNA on the page looks functionally like this:[search for stories][founditems][writefile file=...]some header infoblahblahblah[grep search=????&replace=][include file=path/to/[articleID].txt][/grep][/writefile]story: [articleID] was exported.
[/founditems][/search]How would I strip the following from a story:Anything between (and including the div tag): I basically need (assuming
[grep] is the best way to do this) the grepsearch for ???? in my
[grep] context above.I'm open to other ways of doing this, but
[convertwords] doesn't seem tohave a wild character scheme to use.Thanks!Steven--Steven JarvisWeb DeveloperThe Morning NewsNWAonline.net-------------------------------------------------------------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/
Steven Jarvis
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:
[UPPERCASE] (1997)
WebCat2 several catalogs? (1997)
PCS Frames (1997)
WC on Linux question (2001)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
two unique banners on one page (1997)
special commerce fields (1997)
How did *you* learn Web Catalog? (2000)
OT: typhoon manual (2000)
PSC recommends what date format yr 2000??? (1997)
Spiders and Bots (2000)
Search for starts with and ends with? (2003)
Search in 2 or more catalogs (1997)
Extended [ConvertChars] (1997)
FTP and [shell] (2003)
[cart] not being interpreted inside [founditems] (1997)
using showpage and showcart commands (1996)
webdna hideif / redirect - javascript disabled (2006)
using showpage and showcart commands (1996)
Sorry, WebDNA Server Not Running! (2005)