Regex (정규표현식) - RLidea/dev.docs GitHub Wiki

Regex (정규표현식)

ISO 8601 Date format(yyyy-mm-dd) - Regex Tester/Debugger

^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$
const urlRegex = "^(http:\\/\\/www\\.|https:\\/\\/www\\.|http:\\/\\/|https:\\/\\/)?[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(\\/.*)?$";

const phoneRegex = "^(tel:)?\\d{3}-\\d{3,4}-\\d{4}$";
const phoneRegex = "^d{4,11}$";

const dayRegExp = "^(19|20)\d{2}-?(0[1-9]|1[012])-?(0[1-9]|[12][0-9]|3[0-1])$";

const emailRegex = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$";
⚠️ **GitHub.com Fallback** ⚠️