Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Help with regex in getting the value out of a certain word

$
0
0
Hi everyone. Im not very good in doing regex. I would like to ask for you help here. The situation is to get a certain value based on the given word. The value does not have a format and very messy. Below picture is the sample that I need. The regex needs to get the certain word and the next close and open parenthesis with percentage needed to be in the new field "(00%)" . Please see the picture below for the sample data. Need to get the word Peach and the next (00%) to get will go to "Peach %". Same with other work like Banana//BANANA and Maple/MAPLE. Thank you very much in advance if you are trying to help and answer my question. Example: ![alt text][1] [1]: /storage/temp/275848-capture.png

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>