POSITION:028,114
COLOUR:STANDARD
TEXT:00,If you want to search for a substring of characters anywhere in the
TEXT:16,target sequence, place a * wildcard on both sides of the substring. This
TEXT:16,will produce a match pattern of "*PQR*" for example. You can also mix
TEXT:16,wildcards in a match pattern, such as "A?c*1". This means
TEXT:16,wildcard_match() will only get a match on this pattern if the searched
TEXT:16,string's first character is "A", its third character is "c", and
TEXT:16,its last character is "1".
TEXT:32,A demo program is available that allows you to experiment with pattern
TEXT:16,strings, to help you get a better understanding of wildcard_match().
TEXT:32,If you want to write your own sequence search programs, one important
TEXT:16,factor is the speed on finding the element you are searching for. To
TEXT:16,optimize your search, it is best to sort the sequence and then look up
TEXT:16,each element until you either get a match, or compare a value that is
TEXT:16,larger than the element you are looking for (which means not found).

