This pattern database contains current 417 pattern for everything possible and impossible. I hope you can find the pattern you need for your work here. Faultlessness cannot be guaranteed! But you can test the pattern if it does what you expect it to do. Use the built-in input field.
00002 |
| nnnn1234 |
| pattern="\d{4}" |
| 1234 3214 |
| E124 12378 |
| Any four-digit number. Simplified form of the postal code, it would be better to define the validity in more detail. For example, there is no postal code with zeros at the beginning. |
| Not perfect for postal codes |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00036 |
| n,nn.n |
| pattern="[1-5]([.,]\d)?|6([.,]0)?" |
| 2,3 3.2 |
| 7 2,25 |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00057 |
| pattern="[0-9]{4} *[0-9]{6} *[0-9]{5}" |
| 3759 876543 21001 3759 876543 21001 |
| 37598 76543 21001 3759 876543 2101 |
| The credit card number is an important number for identification during a payment transaction and provides information about the manufacturer of the credit card. Amex uses the identifier 34xx, 37xx. . The first four digits define the credit card company, the fifth digit identifies the credit card company (Classic, Gold, ...), the sixth digit defines the main card, partner card, VIP card. |
| Don't use it! It does not work! Amex Credit Card certainly does not have an infinite number of spaces. This pattern is junk! |
| 3[47][0-9]{2}( )?[0-9]{6}\1[0-9]{5} |
| html5pattern.com/cards |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00071 |
| pattern="^[a-z\d\.]{5,}$" |
| Facebook Username |
| [a-z\d.]{5,} |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00138 |
| pattern="[A-Z]{2}\d{5}[0-9A-Z]{13}" |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00178 |
| (+99(99)9999-9999) |
| pattern="[\+]\d{2}[\(]\d{2}[\)]\d{4}[\-]\d{4}" |
| Don't use it! It does not work! |
| +\d{2}(\d{2})\d{4}-\d{4} |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00351 |
| 0000mm x 0000mm x 0000mm |
| pattern="\d{1,4}(mm|in) x \d{1,4}(mm|in) x \d{1,4}(mm|in)" |
| input-pattern.com |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |
00384 |
| pattern="/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/" |
| https://stackoverflow.com/questions/64055208/html5-pattern-to-email-field |
| All data without guarantee of correctness! Please test it yourself.alle Angaben ohne Gewähr der Fehlerfreiheit! Bitte teste es selbst. |