export const numberOnly = (value: string): string => { const matched = value.match(/[\d.]+/g); return matched ? matched.join("") : ""; }; export const passwordRegex = /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[@$!%*?&#])[A-Za-z\d@$!%*?&#]{8,}$/; export const emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;