String Matching Objects

back to main page

This object implements simple string matching, which allows to search for complex text matches inside a string. It is not substitution for regular expressions, but provides some similar way of text pattern matching.

 

Implemented match domains: click here to view Match_object.dom

How to include match_object into your project:

Use VP Studio setup utility, open your project.inc file and select the following options:

How to use match_object inside your programm:

 MATCH_PATTERN = "key1 and *end_key",
CL_MATCH = cl_match::new(),
CL_MATCH:compile(MATCH_PATTERN),
CL_MATCH:match(VALUE,MATCH_FOUND),
write("MATCH_FOUND=",MATCH_FOUND),nl,

 

Search Pattern

Key

Text Body:

 

 

Download VIP Project Sources

See Sources for details:

Match_object.pro - object implementation

string_match.pro - source of CGI program which you can run via the WEB


Copyright 1998-2000 EDMGROUP (Australia)

Last Updated: March 20, 2002