Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript equiv of eregi

Status
Not open for further replies.

zeroKelvin

Technical User
Sep 1, 2002
6
US
Is there an equivalent of the PHP function "eregi" in VBScript? Or if not, is there an easy way to do this that doesn't grow exponentially huge when looking for lots of strings? The use is a dirtyword / phrase detector.

If anyone knows of an activeX server side component filter that would be fine too, need blacklists, whitelists and outputs indicating what was found etc... needs to interface with MSSQL 2000.

THanks,

Phil
 
To do a case insensitive regular expression match (=PHP eregi), use the Regexp object and set the .IgnoreCase property to True.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top