Hi I am trying to parse a regEx but I am getting error
I am trying to "parse regex" and I followed the documentation provide by you but I am getting an error.
regex expression:
| parse regex "(?<field>["]?level[\\]?["]?[:=][\\]?["]?(([a-zA-Z]*))[\\]?["]?)"
error I am getting is:
No capture group found in regex, regex="(?<level?level[\\]?[". An example of a valid "extract" usage is [extract "From: (?<from>.*) To: (?<to>.*)"]
May I get some help. Thanks in advance
-
Hello Akshay Jaisinghani,
The Special characters in the RegEx needs to be escaped.
For this particular case, the double quotes (") seems to end the RegEx expression Statement.Thank you
Regards
Harishwer Selvakumar
Customer Success Engineer - Sumo Logic
Please sign in to leave a comment.
Comments
3 comments