Quantcast
Channel: Cadence Community
Viewing all articles
Browse latest Browse all 3331

Is it possible to specify a variable with rexMatchp?

$
0
0

Hi,

Can we have a variable with rexMatchp?

My requirement is as below:

a = "m_1"

b = '("m_1" "m_1_1" "m_1_2")

c = setof(i  b  !rexMatchp("_[1-9]*$" i)   // This will return nil.

My desired output for c is "m_1" and at the same time, I want to exclude a_[1-9] where a="m_1"

Could you please guide? Is it possible with rexMatchp?

 

Thanks,

Ram 

 


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>