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
match exact KEY inside a string Item which finishes with KEY (*KEY) Item which starts with KEY (KEY*) Item which starts with START and finishes with END (START*END) Item which starts with START has 3 chars before END (START_X_END) String which has KEY1 and KEY2 Combination of OR and AND in brackers String without KEY3 in it String with KEY1 and without KEY2 Search for "KEY WITH SPACES" inside a string
Key
Text Body:
search for string which starts with KEY_and_has_something_after_that
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