Posts Tagged ‘ regular expressions ’

Ten SAS Enterprise Guide program editor tricks

July 3, 2017
By

If you spend a lot of time in SAS Enterprise Guide (as I do), you probably get to know its features pretty well. But we don't always take the time to explore as we should, so there might be a few golden nuggets of editor knowledge that have escaped you

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Ten SAS Enterprise Guide program editor tricks

Boaty McBoatface is on the run

April 6, 2016
By

I know what you're thinking: two "Boaty McBoatface" articles within two weeks? And we're past April Fool's Day? But since I posted my original analysis about the "Name our ship" phenomenon that's happening in the UK right now, a new contender has appeared: Poppy-Mai. The cause of Poppy-Mai, a critically

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Boaty McBoatface is on the run

And it’s Boaty McBoatface by an order of magnitude

March 25, 2016
By

In a voting contest, is it possible for a huge population to get behind a ridiculous candidate with such force that no other contestant can possibly catch up? The answer is: Yes. Just ask the folks at NERC, the environmental research organization in the UK. They are commissioning a new

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on And it’s Boaty McBoatface by an order of magnitude

Using a regular expression to validate a SAS variable name

August 22, 2012
By

Regular expressions provide a powerful method to find patterns in a string of text. However, the syntax for regular expressions is somewhat cryptic and difficult to devise. This is why, by my reckoning, approximately 97% of the regular expressions used in code today were copied and pasted from somewhere else.
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Using a regular expression to validate a SAS variable name

Example 8.27: using regular expressions to read data with variable number of words in a field

February 25, 2011
By
Example 8.27: using regular expressions to read data with variable number of words in a field

A more or less anonymous reader commented on our last post, where we were reading data from a file with a varying number of fields. The format of the file was:1 Las Vegas, NV --- 53.3 --- --- 12 Sacramento, CA --- 42.3 --- --- 2The complication in the...
Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off on Example 8.27: using regular expressions to read data with variable number of words in a field

Some Fun with SAS and Perl Regular Expressions

December 9, 2009
By

This post assumes you have a little understanding of how regular expressions work and specifically how SAS implements regular expressions. I recently did something like this and thought it would be good to share. Suppose you have a program that search...
Read more »

Tags: ,
Posted in SAS | Comments Off on Some Fun with SAS and Perl Regular Expressions

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

Sponsors





Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.