BookmarkSubscribeRSS Feed
SIgnificatif
Quartz | Level 8

Hi All,
Anybody knows how to match this in one regexp ?

[Home[0-8]] or Home[0-8]


So far tried this but it's not working ..
.*?\([Home[0-8]|[(Home[0-8]]).?\].*

 

  • the first one is between square brackets 
  • after the numbers there could be . or , ( period or comma)
  • How to apply the non greedy matching ? if both found ?

Thanks for your input.

 

1 REPLY 1
PeterClemmensen
Tourmaline | Level 20

Something like this?

 

\[*Home\[0-8[,.]*\]

 

Also, what do you mean by 'if both found'? Can the two be in a single string or?

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 649 views
  • 0 likes
  • 2 in conversation