SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 25252: Searching for a pattern in a character string using PRXPARSE and PRXMATCH

DetailsCodeOutputAboutRate It
PRXPARSE compiles a Perl regular expression (PRX) that can be used for pattern matching of a character value. PRXMATCH searches the specified string for the parsed pattern and returns the position of the matched pattern, if one is found.

Note: Perl Regular Expresssions are new in SAS 9.0.


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.