I'm struggling with a little issue in Typescript - how can I use just one backslash?
What I'm aiming for is an url pattern like this:
"\/hello\/"+ urlRoute + "\/([0-9]*)"
,
But when I attempt it, I end up with
"/hello/"+ urlRoute + "/([0-9]*)"
If I try
"\\/hello\\/"+ urlRoute + "\\/([0-9]*)"
,
The result is
"\\/hello\\/"+ urlRoute + "\\/([0-9]*)"
,
I've tried some solutions without success - I always end up with two or three backslashes, never just one ^^
If anyone has any insight or advice,
I would appreciate the help. Thanks!