home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!portal!ntmtv!ntmtv!bellam
- From: bellam@ntmtv.UUCP (Andrea Bell)
- Subject: Pattern Matching Algorithm wanted
- Message-ID: <1992Sep14.173458.27896@ntmtv>
- Originator: bellam@tucana
- Sender: news@ntmtv
- Nntp-Posting-Host: tucana
- Reply-To: bellam@ntmtv.UUCP (Andrea Bell)
- Organization: Northern Telecom Inc, Mountain View, CA
- Distribution: ba
- Date: Mon, 14 Sep 1992 17:34:58 GMT
- Lines: 32
-
- Greetings,
-
- I am looking for a pattern matching algorithm encorporating
- wild cards and place holders. I currently have the Knuth-Morris-
- Pratt algorithm for simple pattern matching, but it is not specific
- enough. I will be using this pattern matching algorithm on strings
- such as the following:
-
- 1) match(415*,variable_number) where:
-
- 415, 4141, 4159669097, etc are matches
-
- 2) match(???2447788,variable_number) where:
-
- 4082447788, 4152447788, etc are matches
-
- 3) match(4??*,variable_number) where:
-
- 415, 408, 4153334444, etc are matches
-
- The matching algorithm would be similar to what unix uses
- for wild cards and place holders. If you know of a good
- resource or have an appropriate algorithm, please send it
- via email to address:
-
- Andrea Bell
-
- I will send out a reference document of all solutions that are
- returned to me. Thank you.
-
- Andrea Bell
- Northern Telecom
-