Im trying to solve a problem with my regex.
Im extracting the username from an XML transaction.
Sometimes the username comes like this (Byt the way, I think I dont know how to post XML code on the SplunkBase because it gets processed by the editor, so Im omitin some ">" and "<" to get it out).
<login>
[email protected]</login>
I can get it with this Regex:
(?i)<login>(?P<CustomerName>[^<]+)"
And sometimes like this:
<login xmlns="">
[email protected]</login>
I can get it with this Regex:
(?i) xmlns="">(?P<CustomerName>[^<]+)
Im trying to get a Regex that satisfy both cases,, I was thinking about a boolean, like OR (||) between the two REGEX, but it didnt work.
Im new to this and I dont know how to use it.
Thanks!!
... View more