14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

466 Formula Functions Reference Appendix C<br />

Character Pattern Functions<br />

Pat Tab<br />

Constructs a pattern that matches forward to position int in the source string. It can match 0 or more<br />

characters. It fails if it would have to move backwards or beyond the end of the string.<br />

Pat R Tab<br />

Constructs a pattern that matches up to position n from the end of the string. It can match 0 or more<br />

characters. It fails if it would have to move backwards or beyond the end of the string.<br />

Pat Test<br />

Constructs a pattern that succeeds and matches the null string if expr is not zero and fails otherwise.<br />

Pat At<br />

Constructs a pattern that matches the null string and stores the current position in the source string<br />

into the specified JSL variable (varName). The assignment is immediate, and the variable can be used<br />

with expr() to affect the remainder of the match.<br />

Pat Rem<br />

Constructs a pattern that matches the remainder of the string. It is equivalent to patRTab(0).<br />

Pat Arb<br />

Constructs a pattern that matches an arbitrary string. Initially it will match the null string. It will match<br />

one additional character each time the pattern matcher backs into it.<br />

Pat Succeed<br />

Constructs a pattern that always succeeds, even when the matcher backs into it. It matches the null<br />

string.<br />

Pat Fail<br />

Constructs a pattern that fails whenever the matcher attempts to move forward through it. The<br />

matcher backs up and tries different alternatives. If and when there are no alternatives left, the match<br />

will fail and Pat Match will return 0.<br />

Pat Abort<br />

Constructs a pattern that immediately cancels the pattern match. The matcher does not back up and<br />

retry any alternatives. Conditional assignments are not made. Immediate assignments that were already<br />

made are kept.<br />

Pat Fence<br />

Constructs a pattern that succeeds and matches the null string when the matcher moves forward<br />

through it, but fails when the matcher tries to back up through it. It is a one-way trap door that can be<br />

used to optimize some matches.<br />

Pat Arb No<br />

Constructs a pattern that matches zero or more copies of pattern.<br />

Pat Repeat<br />

Matches pattern between minimum and maximum times.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!