-
I am using this page:
with regex Which returns
However I only want the first result, normally I would miss the /g from the regex in order to do this, but it seems to be added my default. Is there another way, or can it be made an option? |
Beta Was this translation helpful? Give feedback.
Answered by
Sc0th
Aug 30, 2022
Replies: 1 comment 2 replies
-
Found it, use this at the as the prefix (or suffix) to grab first (or last) entry - (?s:.*) In the example above |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
dgtlmoon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found it, use this at the as the prefix (or suffix) to grab first (or last) entry - (?s:.*)
In the example above
\s{2}iOS.+?([\d.]+)(?s:.*)
would result in just15.6.1
being returned.