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