diff --git a/src/constants/regexPattern.js b/src/constants/regexPattern.js new file mode 100644 index 0000000..b121159 --- /dev/null +++ b/src/constants/regexPattern.js @@ -0,0 +1,6 @@ +const regexPatterns = { + email: /^[a-zA-Z0-9+-\_.]+@[a-zA-Z0-9-]+\.[a-zAZ0-9-.]+$/, + password: /^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{6,}$/, +}; + +export default regexPatterns; \ No newline at end of file