diff options
author | Blaster4385 <[email protected]> | 2022-08-12 11:23:48 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2022-08-12 11:26:32 +0530 |
commit | 87a343644592e9b425e7fa0805988ad8e7ee8778 (patch) | |
tree | ca8811c7d708bbb7f3266b9bc1045ee70219f996 /client/src/components/RegEx | |
parent | 30a7a079b16e1d17e8cc920d2fb3338f79767432 (diff) |
Refactor code and switch to a multi-step form setup
Diffstat (limited to 'client/src/components/RegEx')
-rw-r--r-- | client/src/components/RegEx/RegEx.jsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/components/RegEx/RegEx.jsx b/client/src/components/RegEx/RegEx.jsx new file mode 100644 index 0000000..2df4266 --- /dev/null +++ b/client/src/components/RegEx/RegEx.jsx @@ -0,0 +1,9 @@ +export const validString = /^[a-zA-Z]+$/ + +export const validMobileNumber = /^[0-9]{10}$/ + +export const validNumber = /^[0-9]+$/ + +export const validPincode = /^[0-9]{6}$/ + +export const validEmail = /^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/ |