beatrizfriso / Librarian

This API is designed to be easy to use, with clear documentation and a simple, intuitive interface. This repository was made to test my .NET and C# studies.
5 stars 1 forks source link

Add CPF validation algorithm #4

Open beatrizfriso opened 1 year ago

beatrizfriso commented 1 year ago

Do this with regex?

([0-9]{2}[.]?[0-9]{3}[.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[.]?[0-9]{3}[.]?[0-9]{3}[-]?[0-9]{2})