Example Program
Wildcard Searching
String matching using wildcards.
File "find_wild.cpp"
A tutorial about the use of wildcard find algorithms.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
This program uses the algorithm WildShiftAnd to perform a wildcard search.
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
The pattern matches e.g. "cow", "crow", and "cou", but not "cros".
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
Output
35
49
56
93
109
116
Note that the printed positions are the positions of the last characters of the matches.
See
SeqAn - Sequence Analysis Library - www.seqan.de