How does regex catch these whitespaces exactly and is there a whitespace that it does not catch with the expression \\s How does regex even work in the backend? Is it manually looking for certain whitespaces added in a specified list?
I'm making a website for my assignment and for that I will need to verify that a credit card number is in a valid format (all numbers and 16 digits long). However it is common for people to enter credit card details with spaces every 4 numbers.…