I have a long string (comes from a SQL query) that contains this phrase:
"AND RO.[TPID] = 18411436"
I want to replace the number portion each time I go through a loop. How do I exctract the patte so I can perform a sub or str_replace?
When I run grep("[TPID] = ",x) it retus a 0 as it didn't find that patte. The length of the number also varies is it is not always 8 digits and I don't know the number so I can't just do a search for the number.
Thanks!
