0

I have this string 'dwaiuhnd2\{daoiwudhja' that is password. I want to check if the password is correct but it always gives me an error because of the spacial character. So I just want the original string but I get 'dwaiuhnd2{daoiwudhja'. How do I correct this behaviour? Thanks

Phil
  • 157,677
  • 23
  • 242
  • 245
Allennick
  • 445
  • 2
  • 10
  • 2
    in a string literal, you escape it, using \ ... so \\ is \ – Bravo May 02 '22 at 08:45
  • What error do you get exactly *where*? There's no reason to get any error from a string containing a backslash, unless you're doing something with it you shouldn't. – deceze May 02 '22 at 09:17

0 Answers0