I’m working with XML embedded in a syslog message. I used Python to remove the information outside of the <>. Since I’m playing with Julia I’m trying to figure out a way of doing the same thing. I’ve read about findfirst, but that doesn’t resolve the issue. This is sample data.
Datetime host other stuff <xml data and more data>stuff at the end
What I want is just the data between <>. In Python I use
print(line[line.find(“<“):line.find(“>”)])
Is there anything similar in Julia?
TIA Joe