Guys i have a string like this:
variable='<partyRoleId>12345</partyRoleId>'
what i want is to extract the value so the output is 12345.
Note the tag can be in any form:
<partyRoleId>
or <ns1:partyRoleId>
any idea how to get the tag value using grep or sed only?