DATA Step, Macro, Functions and more

Should I use SAS Regular Expressions or Perl Regular Expressions in BaseSAS

Reply
PROC Star
Posts: 1,167

Should I use SAS Regular Expressions or Perl Regular Expressions in BaseSAS

Base SAS contains two classes of regular expression functions; the older SAS Regular Expressions and the newer (added version 9) Perl Regular Expressions. I'm going to need to do some work with regexps, and I'm wondering which set SAS offers a higher level of support for. I don't want to invest in learning one, just to have it deprecated.
Respected Advisor
Posts: 4,173

Re: Should I use SAS Regular Expressions or Perl Regular Expressions in BaseSAS

I would use Perl RegEx as they follow a broader standard and will more likely be the ones which will be extended and prevail.
Contributor
Posts: 43

Re: Should I use SAS Regular Expressions or Perl Regular Expressions in BaseSAS

I suggest that you should use Perl Regular Expressions.
Ask a Question
Discussion stats
  • 2 replies
  • 174 views
  • 0 likes
  • 3 in conversation