Using Regular Expressions in SAS | Match a Pattern | PRXMATCH

Sdílet
Vložit
  • čas přidán 15. 07. 2024
  • In this Green Numbers data tutorial I show you how to use regular expressions to make your code more flexible. In coding we often need to search for specific strings, and there are functions that help us to do this such as the FIND function. But what if you’re not looking for a specific string value but a string pattern. For example, rather than a specific phone number you’re looking for any phone number. For this kind of search we need a more powerful tool. This is where regular expressions really shine. With regular expressions we can search for a pattern, perform fuzzy matching, find and replace a value matching a pattern, and extract a value matching a pattern and save it to a variable.
    This is the first Green Number video on regular expressions. This one focuses on matching a pattern. In other videos I’ll focus on finding and replacing patterns, and finding a pattern and extracting the value to save to a variable.
    support.sas.com/rnd/base/data...
    support.sas.com/resources/pap...
    support.sas.com/resources/pap...

Komentáře • 3