'Am i able to make multi patterns in HTML
Is this input is valid for credit card validator Code :
<div class="form-group">
<label for="creditc">Card Number</label>
<input placeholder="XXXX XXXX XXXX XXXX" pattern="/^5[1-5][0-9]{14}$|^2(?:2(?:2[1-9]|[3-9][0-9])|[3-6][0-9][0-9]|7(?:[01][0-9]|20))[0-9]{12}$/|/^3[47][0-9]{13}$/|/^4[0-9]{12}(?:[0-9]{3})?$/|/^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]
|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$/" data-drupal-selector="edit-ot-description-of-goods" type="text" id="edit-ot-description-of-goods--zZdNZ0slvGU" name="ot_description_of_goods1" value="" size="30" maxlength="16" class="form-text required" required="required" aria-required="true">
</div>
i want to make a pattern to make the credit card input stat with 3 or 4 or 5 only
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
