can anyone help me figure out a regular expression to find the value of a tag element?
for example:
<tag element="my value">
<tag element=value>
<tag element="my value" nextelement>
<tag element=value nextelement>
<tag element = "my value">
<tag element = value>
<tag element = "my value" nextelement>
<tag element = value nextelement>
so in each of the above i need to find either "my value" or "value"...
i tried this but it wont work for every situation:
ereg("element[ ]*[=][ ]*[\"]?([^\">]*)[ |\"|>].*" ...
thanks for your help - regular expressions are not my best area!
jamie.