- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
riginoommen
Explorer
02-23-2022
11:48 AM
My query is:
Mozilla/5.0 (X11; Linux x86_64; Catchpoint) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
I want to extract the following word from the above sting with regex can you please help me.
Chrome/87.0.4280.88
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
02-23-2022
12:15 PM
Try like this (replace everything before "rex" command with your search)
|makeresults | eval _raw="Mozilla/5.0 (X11; Linux x86_64; Catchpoint) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" | table _raw
| rex "\s+(?<SecondLastPart>\S+)\s+\S+$"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
02-23-2022
12:15 PM
Try like this (replace everything before "rex" command with your search)
|makeresults | eval _raw="Mozilla/5.0 (X11; Linux x86_64; Catchpoint) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" | table _raw
| rex "\s+(?<SecondLastPart>\S+)\s+\S+$"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
riginoommen
Explorer
02-23-2022
12:31 PM
This fetched the data as expected but its not taking the filtered data from past output
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
riginoommen
Explorer
02-23-2022
11:55 AM
Can you please see the updated question
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stefanie
Builder
02-23-2022
12:56 PM
Sure
Try this one?
\s\S+\/\S+\s(?!\()
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stefanie
Builder
02-23-2022
11:52 AM
Hi!
Try this Regex.
\b(\S+)$
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
riginoommen
Explorer
02-23-2022
11:59 AM
How to use the regex with the rex tag
\b(\S+)$
can you please help me
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
riginoommen
Explorer
02-23-2022
11:57 AM
Can you please see the updated question with the answer and I am trying to accommodate with the res. it will be super awesome if you share the full url
