ASP - Pintar str buscado


/ Published in: ASP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function pintar( q, str )
  2. Set regEx = New RegExp
  3. regEx.Pattern = q
  4. regEx.IgnoreCase = True
  5. regEx.Global = True
  6. TextosResultado = regEx.Replace(str, "<font style=""background-color:#FAEEEF"">"& q &"</font>")
  7. pintar = TextosResultado
  8. end function

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.