Open Shivani12345 opened 1 year ago
@Shivani12345
You could use more regex!
const namePattern = /^[A-Z][a-zA-Z]*(?: [A-Z][a-zA-Z]*)(?: [A-Z][a-zA-Z]*)?$/; // Adjusted regex to handle middle initials
const expirationDateRegex = /(\d{2})\/(\d{2})/;
For card number recognise I am using below method. I can get card number and all response as string array but how to find name and expiry date in array response.