Explain why each of these strings don't match a \: "\", "\\", "\\\"

YoungJoon Suh·2023년 6월 20일

"\": This will escape the next character in the R string.
"\": This will resolve to \ in the regular expression, which will escape the next character in the regular expression.
"\\": The first two backslashes will resolve to a literal backslash in the regular expression, the third will escape the next character. So in the regular expression, this will escape some escaped character.

profile
저는 서영준 입니다.

0개의 댓글