Version extraction: non-contiguous match groups #1892
-
Consider a case such as Collabora: the apk filename is Since this is a (semi-)weekly build of a LTS release, a sane version number would be something along the lines of It's my understanding that there is no native RegEx provision for capturing non-contiguous text in a single match group, but can anyone think of a way to work around this in Obtainium to produce the desired version number? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Version String Extraction ReGex: |
Beta Was this translation helpful? Give feedback.
-
Opened #1913 |
Beta Was this translation helpful? Give feedback.
Just realized this was already implemented in #1235.
Regex:
([0-9]+\.[0-9]+)-snapshot-arm64-v8a-([0-9]+-[0-9]+-[0-9]+)
Match groups:
$1.$2