I am trying to understand the regex below:
"/login?(\\?.+)?"
I looked through Java documents , but I cannot clearly understand the purpose of this expression.
I understand that he is looking for a line starting with /login, and then what do the characters mean ?(\\?.+)?? Please help me in understanding this.
/login
?(\\?.+)?
?
n
(parentheses)
\\?
\?
.+
spaces and my dog!
/logi /login /login?a /logi?an /logi?and my dog
" ?
?some-text-here /login. , /login? n :
?some-text-here
/login?
:
/logi /login /logi?something /login?something
/logi, n (?= ), (() limit a group), ? (- \, ?), (.+, .= , += ).
/logi
()
\
.
+
logi - .
logi
n?
()?
Source: https://habr.com/ru/post/1546093/More articles:Web application and API in one Laravel project? - apiParse Facebook login error with error code 251 - xcodeGradle script for BB10 runtime for Android - android-gradlecannot access attribute value using xpath - xpathcovariant virtual function in C ++ - c ++Chrome uncaught error "Protocols must match" on G + signin - google-chromeForm warning message after jquery update - javascriptWhat is the behavior of the mmap () 'ed pointer after closing the file descriptor without first calling munmap ()? - cLaravel 4 session does not expire after life limit - authenticationHow does narrowing work in a method call in Java? - javaAll Articles