I almost lost 4 hours triying to make it work and i give up.
Given the next string:
adsdasd.sdfdsfsdf.f43fvev.ASCSDF.sfgsdfssdf.yaml
I want a regex, posix possible to:
- substitute all the
.
for/
- except the
.yaml
that it should be remain so.
So, this must be the final string:
adsdasd/sdfdsfsdf/f43fvev/ASCSDF/sfgsdfssdf.yaml
I tried with:
- Regex to match one character exactly one time anywhere inside a string
- How can I match "anything up until this sequence of characters" in a regular expression?
- and regex101
:(