C
C#3y ago
Groophy

replace 'backslah' to 'doublebackslah' but if char already not double

a\aa\a -> a\\aa\\a

ab\\aba\aa\a -> ab\\aba\\aa\\a
a\aa\a -> a\\aa\\a

ab\\aba\aa\a -> ab\\aba\\aa\\a
4 Replies
Groophy
GroophyOP3y ago
I found a way
text.Replace("\\", "\\\\").Replace("\\\\\\", "\\\\")
text.Replace("\\", "\\\\").Replace("\\\\\\", "\\\\")
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord3y ago
Ask the thread owner or member with permission to close this!
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server