이 프로그램은 다양한 정규식(RegEx) 패턴을 사용하여 문자열을 매칭하고, 유효성을 검사하며, 특정 패턴을 추출하거나 대체하는 예제를 보여줍니다.// 정규식 예제 모음// 1. 간단한 문자열 매칭const helloRegex = /hello/; // "hello"라는 단어를 찾는 정규식console.log('hello world'.test(helloRegex)); // trueconsole.log('hi world'.test(helloRegex)); // false// 2. 숫자 매칭const digitRegex = /\d/; // 숫자 하나를 찾는 정규식console.log('There are 3 cats'.match(digitRegex)); // ['3']// 3. 이메일 유효성 검사const em..