The $& and $1 are not the same.
$& is a back reference to the whole match.
$1 is a back reference to the submatch captured with capturing
'✘✘✘ Javascript' 카테고리의 다른 글
[Basic] Javascript sync/async, blocking/non-blocking (0) | 2023.05.17 |
---|---|
[web API] ResizeObserver: 크기변화 감지 (0) | 2023.04.14 |
[axios] Query params 자동 인코딩 Query string > params are encoded automatically (0) | 2023.04.10 |
Javascript Falsy values 값들 (0) | 2023.04.09 |
[event] window.matchMedia - mobile detecting: 모바일 확인 하기 + React Hook (0) | 2023.04.06 |
댓글