Re: Highlighting words found in a keyword search

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50566
interpreted = N
texte = ... and the really cool thing about all this is that you can add a few more lines to this little code snippet and build yourself a whole friggin' world wide website! : c)I'm not very good with regular expressions, I wish I understood more about them. ... I should buy some books. On Wednesday, May 21, 2003, at 11:27 AM, Rob Marquardt wrote:> on 5/21/2003 1:15 pm, Marc Kaiwi at marc@kaiwi.com so noted... > >> sign doesn't exist in the string, but sign... does. >> >> : c) > > Sure, that's what the *computer* would say! : ) > > If sub-word matches aren't a problem and there's no HTML formatting in > the > text that's being searched, you could have [boldwords] do the grunt > work and > have [grep] reformat the tags it leaves behind. Case-insensitivity you > get > for free. > > [text]myString=A San Francisco school bus driver is facing a felony > drunken > driving charge after he allegedly ran a stop sign...[/text] > [text]myString=[boldwords words=[formvariables] [value] > [/formvariables]][myString][/boldwords][/text] > [text]myString=[grep search=([^<]*)&replace= style=background-color: yellow>\1][myString][/grep][/text] > > [myString] > > > Rob Marquardt > Designer/Resident Wirehead > Toast DesignSigned: Marc Kaiwi ------------------------------------------------------------- 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: Highlighting words found in a keyword search (Gary Krockover 2003)
  2. Re: Highlighting words found in a keyword search (Brian Fries 2003)
  3. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  4. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  5. Re: Highlighting words found in a keyword search (Rob Marquardt 2003)
  6. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  7. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  8. Re: Highlighting words found in a keyword search (andy mowrey 2003)
  9. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  10. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  11. Re: Highlighting words found in a keyword search (Rob Marquardt 2003)
  12. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  13. Re: Highlighting words found in a keyword search (WebCat @ Inkblot Media 2003)
  14. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  15. Re: Highlighting words found in a keyword search (marc@kaiwi.com (Marc Kaiwi) 2003)
  16. Re: Highlighting words found in a keyword search (WebCat @ Inkblot Media 2003)
  17. Re: Highlighting words found in a keyword search (WebCat @ Inkblot Media 2003)
  18. Re: Highlighting words found in a keyword search (Kenneth Grome 2003)
  19. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  20. Re: Highlighting words found in a keyword search (Gary Krockover 2003)
  21. Re: Highlighting words found in a keyword search (Christer Olsson 2003)
  22. Re: Highlighting words found in a keyword search (Rajeev Kumar 2003)
  23. Re: Highlighting words found in a keyword search (Stuart Tremain 2003)
  24. Re: Highlighting words found in a keyword search (Rajeev Kumar 2003)
  25. Re: Highlighting words found in a keyword search (Tim Robinson 2003)
  26. Re: Highlighting words found in a keyword search (Kenneth Grome 2003)
  27. Highlighting words found in a keyword search (Gary Krockover 2003)
... and the really cool thing about all this is that you can add a few more lines to this little code snippet and build yourself a whole friggin' world wide website! : c)I'm not very good with regular expressions, I wish I understood more about them. ... I should buy some books. On Wednesday, May 21, 2003, at 11:27 AM, Rob Marquardt wrote:> on 5/21/2003 1:15 pm, Marc Kaiwi at marc@kaiwi.com so noted... > >> sign doesn't exist in the string, but sign... does. >> >> : c) > > Sure, that's what the *computer* would say! : ) > > If sub-word matches aren't a problem and there's no HTML formatting in > the > text that's being searched, you could have [boldwords] do the grunt > work and > have [grep] reformat the tags it leaves behind. Case-insensitivity you > get > for free. > > [text]myString=A San Francisco school bus driver is facing a felony > drunken > driving charge after he allegedly ran a stop sign...[/text] > [text]myString=[boldwords words=[formvariables] [value] > [/formvariables]][myString][/boldwords][/text] > [text]myString=[grep search=([^<]*)&replace= style=background-color: yellow>\1][myString][/grep][/text] > > [myString] > > > Rob Marquardt > Designer/Resident Wirehead > Toast DesignSigned: Marc Kaiwi ------------------------------------------------------------- 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/ marc@kaiwi.com (Marc Kaiwi)

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:

Access Denied! But why? (1997) Sendmail truncation in Eudora Clients (1998) RE: E-mailer error codes (1997) Download Question (1997) Bulletin Board.... (2000) Problem with new formvariables (2000) Re:Review comparison by PC Magazine: Open for On-line Business (1997) Uh...can someone help me out with the b10? (1997) Checkboxes (1998) OT : Firewall for webserver (2006) Cart Question: The Epic Saga (1998) Database Structure? (1998) StoreBuilder UPS/XML code question ... (2003) How to implement 'email to a friend' feature? (2002) [WriteFile] problems (1997) OBDC Support (1997) WebCat2.0 [format thousands .0f] no go (1997) ErrorMessages.db suggestion (1997) WebCatalog dying in WebTen Revisited (1998) Click-through/Referral tracking solution needed (2000)