SyntaxFix
Write A Post
Hire A Developer
Questions
I used below regex to get that result also when its finished by a \
\
(\\[^\\]+)\\?$
[Regex Demo]