Hi there!
I’ve been trying to solve this for days now but I could’t find a solution. My regex attempts failed miserably…
Basically what I want to achieve is this:
Go from this input (including line breaks and more than 2 tags)
<name>Max</name>
<description>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. _
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</description>
to saving the text between the tags in variables.
So VAR_NAME = “Max”; VAR_DESCRIPTION = “Lorem Ipsum …”
Can anyone point me in the right direction?
I was trying to use the “Search Variable Using Regular Expression” function but couldn’t get the text between the tags to match.
Thanks!
Edit: And it doesn’t have to be html tags. I just want to be able to pass multiple variables (including some with multiple lines) into KM.
EDIT 2: Thanks a lot for the answers! I ended up finding a solution with JMichaelTXs Regex Code.