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

Regex to extract a number from string

$
0
0
Hello, I am trying (rather unsuccessfully) to extract a number of varying length form a sting. The constants are 0s and us with the string in question being 0s/XXXXXus (with X being the numbers I am trying to extract - the number length varies). I have tried some examples but none do what i am after (most likely due to the fact that I am not sure how best to modify them). My expression is `"0s/(?\d+)us$"` but as mentioned above it is not working. Help !!! Much thanks in adavance for any help or pointers. Cheers, Alastair

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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