14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

578 JSL Syntax Reference Appendix A<br />

Character Pattern Functions<br />

Pat Not Any("string")<br />

Description<br />

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

Returns<br />

A pattern.<br />

Argument<br />

string a string.<br />

Pat Pos(int)<br />

Description<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 />

Returns<br />

A pattern.<br />

Argument<br />

int an integer that specifies a position in a string.<br />

Pat R Pos(int)<br />

Description<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 />

Returns<br />

A pattern.<br />

Argument<br />

int an integer that specifies a position in a string.<br />

Pat R Tab(int)<br />

Description<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 />

Returns<br />

A pattern.<br />

Argument<br />

int an integer that specifies a position in a string.<br />

Pat Regex(string)<br />

Description<br />

Constructs a pattern that matches the regular expression in the quoted string argument.<br />

Returns<br />

A pattern.

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

Saved successfully!

Ooh no, something went wrong!