O'Reilly logo

SAS Functions by Example, Second Edition, 2nd Edition by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2

Perl Regular Expressions

 

Introduction

A Brief Tutorial on Perl Regular Expressions

Function That Defines a Regular Expression

PRXPARSE

Functions That Locate Text Patterns

PRXMATCH

CALL PRXSUBSTR

CALL PRXPOSN

CALL PRXNEXT

PRXPAREN

Function That Substitutes One String for Another

CALL PRXCHANGE

Function That Releases Memory Used by a Regular Expression

CALL PRXFREE

 

Introduction

Perl regular expressions were added in SAS®9. SAS regular expressions (similar to Perl regular expressions but using a different syntax to indicate text patterns) have actually been around since SAS 6.12, but many SAS users are unfamiliar with either SAS or Perl regular expressions. Both SAS regular expressions (the RX functions) and Perl regular expressions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required