I would like to change my string (which represents a uuid without dashes) to a uuid with dashes (8-4-4-4-12)
But I don't succeed. I know the regex to find the correct groups and a regex to replace with the dashes (found those in some forum for javascripters)
But if I use a string replacer and this regex to match my text : (\\w{8})(\\w{4})(\\w{4})(\\w{4})(\\w{12})
and this regex to replace my text: \\$1-\\$2-\\$3-\\$4-\\$5
My string isn't replaced but it gets my replacement string
ex:
00000000000000000000000004040154 -> \\$1-\\$2-\\$3-\\$4-\\$5 instead of 00000000-0000-0000-0000-000004040154
And I don't find any other solutions via some other transformer
What should I do?
Thx