O'Reilly logo

Learning SAS by Example 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 27: Introducing Perl Regular Expressions

27.1  Introduction

27.2  Describing the Syntax of Regular Expressions

27.3  Testing That Social Security Numbers Are in Standard Form

27.4  Checking for Valid ZIP Codes

27.5  Verifying That Phone Numbers Are in a Standard Form

27.6  Describing the PRXPARSE Function

27.7  Problems

 

27.1 Introduction

Regular expressions were first introduced in a language called Perl, developed for UNIX and Linux systems. Perl regular expressions were added to SAS starting with SAS 9. They are used to describe text patterns. For example, you can write an expression that matches any Social Security number (three digits, a dash, two digits, a dash, and four digits). Therefore, you can use a regular expression to ...

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