When a pattern isn’t working the way you expect, use Log() to send pieces of the match to the JMP log. The following example shows how to debug pattern matching and rewrite a script to account for the white space between words in the phrase “the quick brown fox”.
Pat Match(
Show( a, b, c, d );
The output is probably not what you want, given the name of the pattern word. None of the words in the pattern were matched.
The Show( a, b, c, d ) expression is a good first step. If it doesn’t tell you how JMP got that answer, try inserting Log() as follows:
(word >> a) >> Log( "a" ) +
(word >> b) >> Log( "b" ) +
(word >> c) >> Log( "c" ) +
(word >> d) >> Log( "d" )
Show( a, b, c, d );
Show( a, b, c, d );