14.03.2014 Views

Download Jmp User Guide

Download Jmp User Guide

Download Jmp User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix C Formula Functions Reference 465<br />

Character Pattern Functions<br />

For more information and an example you can run, select Help > Indexes > JSL Operators and<br />

select Regex.<br />

Hex to Blob, Char to Blob, Blob to Char<br />

Hex to Blob converts the hexadecimal to a blob (Binary Large Object).<br />

Char to Blob converts the string to a blob. You can specify the encoding in an optional second<br />

argument. Supported encodings are: utf-8, utf-16le, utf-16be, us-ascii, iso-8859-1, and ascii-hex.<br />

Blob to Char converts the blob to a string. You can specify the encoding in an optional second<br />

argument. Supported encodings are: utf-8, utf-16le, utf-16be, us-ascii, iso-8859-1, and ascii-hex.<br />

Character Pattern Functions<br />

These functions provide powerful pattern matching abilities. For complete details, see the JMP<br />

Scripting <strong>Guide</strong>.<br />

Pat Any<br />

Constructs a pattern that matches a single character in the argument.<br />

Pat Not Any<br />

Constructs a pattern that matches a single character that is not in the argument.<br />

Pat Break<br />

Constructs a pattern that matches zero or more characters that are not in its argument; it stops or<br />

breaks on a character in its argument. It fails if a character in its argument is not found (in particular, it<br />

fails to match if it finds the end of the source string without finding a break character).<br />

Pat Span<br />

Constructs a pattern that matches one or more (not zero) occurrences of characters in its argument. It is<br />

greedy; it always matches the longest possible string. It fails rather than matching zero characters.<br />

Pat String<br />

Constructs a pattern that matches its string argument.<br />

Pat Len<br />

Constructs a pattern that matches n characters.<br />

Pat Pos<br />

Constructs patterns that match the null string if the current position is int from the left end of the<br />

string, and fail otherwise.<br />

Pat R Pos<br />

Constructs patterns that match the null string if the current position is int from the right end of the<br />

string, and fails otherwise.<br />

C Formula Functions Reference

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

Saved successfully!

Ooh no, something went wrong!