정규식 테스트

  • g (global)
  • gi (global, ignore case)
  • m (multiline)
  • gim (global, ignore case, multiline)
Results
—
—

정규식 테스트는 선택한 플래그로 정규식을 컴파일하고 샘플 텍스트에서 찾은 일치 수를 보고하며 각 일치를 나열해 패턴을 확인할 수 있습니다.

공식
result = text.match(new RegExp(pattern, flags))

자주 묻는 질문

정규식 플래그는 어떤 의미인가요?
g 는 첫 번째가 아닌 모든 일치를 찾고, i 는 대소문자를 무시하며, m 은 ^ 와 $ 가 줄 시작·끝에서 일치하도록 합니다.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. 소개 MateCalc.

관련 계산기