Category Archive: Regular Expressions

Apr 08 2008

Fast Count Specific Words in a log File

The following example will count the appearance of a word or expression inside a log file. The log file: [1/27/2008 15:6:47] LogFile Open. [***** Search on FAIL/MessageBox keywords for failures *****]. [1/27/2008 15:6:47] Initial thread locale=409 [1/27/2008 15:6:47] returned from France fix with locale 409 [1/27/2008 15:6:47] OC_PREINITIALIZE:[iis] End. Return=1 (OCFLAG_UNICODE) [1/27/2008 15:6:47] OC_INIT_COMPONENT:[iis,(null)] Start. …

Continue reading »

Apr 02 2008

The Regex Coach – Interactive Regular Expressions

The Regex Coach is a graphical application for Windows which can be used to experiment with regular expressions interactively. It has the following features: It shows whether a regular expression matches a particular target string. It can also show which parts of the target string correspond to captured register groups or to arbitrary parts of …

Continue reading »

Apr 01 2008

Where Is ‘93′ hides?

VBScript has no built-in function where we can find all occurrences of a sub string inside a string. Only regular with expressions ( Regexp ) the task is easier. However you need to use Regexp, Matches, and Match objects. p>I am sure that many users would choose the Regexp object for this task, and maybe …

Continue reading »