DHTML - Search instances of a word   
********************************************
Free DHTML Script provided by ©2004-VB'Breizh
**Updated (12/22/2004)    Compatibility :       
relative topics : REGEXP

VB'Breizh HILITE.JS library needed

Search Tool : Search Instances of a word on a page, a script in a database...

Regular Expression Modifiers :
    /g enables "global" matching. With the replace() method, specify this modifier to replace all matches.
    /i makes the RegExp match case insensitive.
    /s enables "single-line mode". In this mode, the dot matches newlines.
    /m enables "multi-line mode". In this mode, the caret and dollar match before and after newlines in the subject string.
    You can combine multiple modifiers as the following [/mysearch/gi].
Write your regular expression :
myRegExp = new RegExp(string, modifiers)
ex : myRegExp = new RegExp("dollar","gi")
sample : Enter a keyword below
   

...Download HILITE.JS library (3 kb)
...Copy the Dhtml Script source code below :


Comment, question ?