Desktop productivity for business analysts and programmers

What does PRXPARSE("/(\w)+(-)(\w)+/") mean? Does it mean to search for word with two characters??

Reply
Contributor
Posts: 51

What does PRXPARSE("/(\w)+(-)(\w)+/") mean? Does it mean to search for word with two characters??


Does it mean to search for word with two charecters??

PROC Star
Posts: 1,143

Re: What does PRXPARSE("/(\w)+(-)(\w)+/") mean? Does it mean to search for word with two characters??

Here's a link to the PRX metacharacters.

http://support.sas.com/documentation/cdl/en/lefunctionsref/67239/HTML/default/viewer.htm#p0s9ilagexm...

I believe your expression is looking for one or more word character, followed by a dash, followed by one or more word characters.

It's worth investing some time in learning the PRX routines. They can be an incredible time saver.

Tom

Contributor
Posts: 51

Re: What does PRXPARSE("/(\w)+(-)(\w)+/") mean? Does it mean to search for word with two characters??

Thank you Tom. I can relate to the expression now which is looking for a pattern in the data with one or more characters, followed by dash, followed by one or more characters. 

Ask a Question
Discussion stats
  • 2 replies
  • 260 views
  • 1 like
  • 2 in conversation