You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Version String" = ["1_0-release", "1_1_3", "1_2_0_0-release", "1_2_1", "1_2_1_1-release"]
and want to sanitize it to
["1.0", "1.1.3", "1.2.0.0", "1.2.1", "1.2.1.1"].
BY NOW I could clean 3-segmented-only versions with
"Trim String Version With RegEx" = "(\d+)(\d+)(\d+)" and
"Match Group to use for..." = "$1.$2.$3"
I could use
"Trim String Version With RegEx" = "(\d+)(\d+)?(\d+)?_?(\d+)?" and
"Match Group to use for..." = "$1.$2.$3.$4"
and that applied to my list, i i'm right, that would result in matching
versions = ["1.0..", "1.2.3.", "1.2.0.0", "1.2.1.", "1.2.1.1"]
so by now the I think it's the best result i'm gonna reach without the feature I want, which is a way to use a conditional clause in the match group pattern field, currently with simple variable substitution (specifically, to me, i need to include or not a dot if a group is not(empty or unnuded) so, used.
THE SYNTAX could be, for my purpose...: $1.$(.)2$(.)3$(.)4
I don't know if regex excludes )( chars to be used in named patterns but anyways, not a problem anyways...
The text was updated successfully, but these errors were encountered:
SomenteRafael
changed the title
Conditional classe in match group pattern for regex pattern to trim String version
Conditional clouse in match group pattern for regex pattern to trim String version
Dec 9, 2024
SomenteRafael
changed the title
Conditional clouse in match group pattern for regex pattern to trim String version
Conditional clause in match group pattern for regex pattern to trim String version
Dec 9, 2024
PROBLEM is I have e.g.
and want to sanitize it to
BY NOW I could clean 3-segmented-only versions with
I could use
and that applied to my list, i i'm right, that would result in matching
so by now the I think it's the best result i'm gonna reach without the feature I want, which is a way to use a conditional clause in the match group pattern field, currently with simple variable substitution (specifically, to me, i need to include or not a dot if a group is not(empty or unnuded) so, used.
THE SYNTAX could be, for my purpose...:
$1.$ (.)2$(.)3$(.)4
I don't know if regex excludes )( chars to be used in named patterns but anyways, not a problem anyways...
The text was updated successfully, but these errors were encountered: