Previous slide Next slide Back to the first slide View text version


Notes:

Developing algorithms can include written explanations of what pattern you’re attempting to match.

Coding involves writing the pattern match which adheres to the pseudo language known as regular expressions

Debugging ensures that there are no logic flaws with the pattern matching code used. For example, is: “H|help” the same as “[H|h]elp”

In example One, we’re trying to match the words: Help, help, helpless, Helpless, helping, or Helping. Notice the mistake made in the regular expression specified. The expression for the first example is:

The expression is improved by changing the algorithm to:

The third example is a better approach by performing a single character match specified in square braces. However, this is still not the best approach. A better expression would be: ________________