I would like to get the "MyDocType" string/value of the following string using regex. Yes, it is an XML node, but I really need to get it using regex! :)
<cmis:propertyString propertyDefinitionId="ctp:DocType" displayName="document type" queryName="ctp:DocType"><cmis:value>MyDocType</cmis:value></cmis:propertyString>
Please note the I may have other matches. I want all. Also, there are other tags in the string, but the following rules may be sufficient to get the string:
starts with:
it has some text between
- but the value is between the
<cmis:value>
tags.
I can't just look at the <cmis:value>
tags because there are occurrences of it in other places that I don't want to match.
Finally, I need to get the link after the href=" text. I can also have many.
<link rel="self" href="http://localhost:8080/alfresco/s/cmis/s/workspace:SpacesStore/i/6c0dc826-179b-4ed6-9c3a-300f45d6556b"/>
thank you very much!
Miguel