Re: quick GREP question

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39477
interpreted = N
texte = I don't mean to sound dumb, but what is GREP anyway? -----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Steven Jarvis Sent: Friday, October 19, 2001 12:59 PM To: WebCatalog Talk Subject: quick GREP question I know jack about grep, though I'm planning to learn it. I *think* it's what I 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 they are 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 stored in a WebCat db, and I'm pulling the story in via [include]. The bulk of the WebDNA on the page looks functionally like this:[search for stories] [founditems] [writefile file=...] some header info blah blah blah[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 grep search for ???? in my [grep] context above.I'm open to other ways of doing this, but [convertWords] doesn't seem to have a wild character scheme to use. Thanks!Steven -- Steven Jarvis Web Developer The Morning News NWAonline.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/ ------------------------------------------------------------- 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:

    
  1. why start a new thread the official way, --- WAS: Re: [WebDNA] Quick grep question (John Butler 2009)
  2. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  3. Re: [WebDNA] Quick grep question ("Dan Strong" 2009)
  4. Re: [WebDNA] Quick grep question (Donovan Brooke 2009)
  5. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  6. Re: [WebDNA] Quick grep question (Donovan Brooke 2009)
  7. Re: [WebDNA] Quick grep question (Kenneth Grome 2009)
  8. Re: [WebDNA] Quick grep question (Patrick McCormick 2009)
  9. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  10. Re: [WebDNA] Quick grep question (Kenneth Grome 2009)
  11. [WebDNA] Quick grep question (Patrick McCormick 2009)
  12. Re: [WebDNA] Quick Grep question (Govinda 2009)
  13. Re: [WebDNA] Quick Grep question (Steve Craig 2009)
  14. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  15. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  16. Re: [WebDNA] Quick Grep question (William DeVaul 2009)
  17. Re: [WebDNA] Quick Grep question (Steve Craig 2009)
  18. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  19. [WebDNA] Quick Grep question (Steve Craig 2009)
  20. Re: quick GREP question (Steven Jarvis 2001)
  21. Re: quick GREP question (John Peacock 2001)
  22. Re: quick GREP question (Maurice Rickard 2001)
  23. Re: quick GREP question (Kimberly Ingram 2001)
  24. Re: quick GREP question (Maurice Rickard 2001)
  25. Re: quick GREP question (Kimberly Ingram 2001)
  26. quick GREP question (Steven Jarvis 2001)
I don't mean to sound dumb, but what is GREP anyway? -----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Steven Jarvis Sent: Friday, October 19, 2001 12:59 PM To: WebCatalog Talk Subject: quick GREP question I know jack about grep, though I'm planning to learn it. I *think* it's what I 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 they are 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 stored in a WebCat db, and I'm pulling the story in via [include]. The bulk of the WebDNA on the page looks functionally like this:[search for stories] [founditems] [writefile file=...] some header info blah blah blah[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 grep search for ???? in my [grep] context above.I'm open to other ways of doing this, but [convertwords] doesn't seem to have a wild character scheme to use. Thanks!Steven -- Steven Jarvis Web Developer The Morning News NWAonline.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/ ------------------------------------------------------------- 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/ Kimberly Ingram

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:

WebCat2b15MacPlugin - [protect] (1997) [setlineitem] unable to set sku? (1999) [lookup] vs. [search] (1998) WebCatalog can't find database (1997) setitems, one more thing (1997) Include a big block of text (1997) [Reload mydata.db] (1998) [Off Topic]Bay To Breakers (or WebCatalog Beats Intershop) (1998) Credit card types (1997) WebCatalog2 Feature Feedback (1996) Field name-subcategory (1997) OK, here goes... (1997) Multi-processor Mac info ... (1997) db merge problem (2002) redirect with frames (1997) Email password -- was Classified Ads 4 Sale (1998) Credit card processing - UK (1997) Database Crash (2001) PCS Emailer's role ? (1997) Browser Resolution (1999)