I'm running into problems with the REGEX feature for custom concepts in SAS contextual analysis. I'm attempting to match strings of numbers with in textual documents. For example, one of my documents contains a sentence of the form
"Bob and Marie live at 1234 Main St"
I'm attempting to use the code:
REGEX: \d{4}
To match the string "1234". When I test/run the custom concept I'm getting no matches. Does anyone know how I can fix this?
Cheers,
SOLVED: I found my own mistake.
I was using
REGEX: \d{4}
ins SCA. I was not aware of the systems sensitivity to spaces at the beginning. The correction I needed to make was to remove it and write
REGEX:\d{4}
SOLVED: I found my own mistake.
I was using
REGEX: \d{4}
ins SCA. I was not aware of the systems sensitivity to spaces at the beginning. The correction I needed to make was to remove it and write
REGEX:\d{4}
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.