Highligh Search Keywords

Results 1 to 3 of 3

Thread: Highligh Search Keywords

  1. #1
    Join Date
    Dec 1969

    Default Highligh Search Keywords

    I am trying to create a highlight keyword functionality for a website search. What I would like to do is highlight (bold,italic etc.) all occurences of the word the user types into the search after being presented with the search results.<BR><BR>My problem is that I don&#039;t want the keyword highlighted if it is part of a URL (i.e &#060;a href-.....&#062;Keyword&#060;/a&#062;).<BR><BR>How can I accomplish this?<BR><BR>Thank You

  2. #2
    Join Date
    Dec 1969

    Default Lookahead and Lookbehind

    I&#039;m no expert on usinig lookahead and lookbehind, but it seems like these concepts would do the trick for you. To learn more about lookahead and lookbehind, check out Darren Neimke&#039;s latest article:<BR><BR>Regular Expressions in .NET<BR>http://aspnet.4guysfromrolla.com/articles/022603-1.aspx<BR><BR>(This assumes you are using ASP.NET, not ASP...)

  3. #3
    Join Date
    Dec 1969

    Default RE: Lookahead and Lookbehind

    I too would like to have a keyword highlight facility, that does not break HTML.<BR><BR>Does anyone have a solution to this problem in classic asp/reg exp?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts