I want to capture text in an attribute within an XML tag. That is
<tag1 name="tag^*&,+">
I want to capture the value within the name attribute (which in this case would be tag^*&,+). This regular expression
name=\"([a-z0-9]+)\"
will only return the value if the text in the attribute is alphanumeric. Is there any syntax that will return the captured value regardless of what symbol and characters? Thanks!
Check out regular-expressions.info
This will do what you want: