Validation for xxx-xxx-xxxx or (xxx)xxx-xxxx - Stack Overflow Closed 12 years ago Possible Duplicate: A comprehensive regex for phone number validation Whats the regex for xxx-xxx-xxxx or (xxx)xxx-xxxx I can create regex for the first one with ^\d{3}-\d{3}-\d{4}$ but how to add rule in this so it can also handle the second one?
Convert card numbers to XXXX-XXXX-XXXX-0000 Format XXXX-XXXX-XXXX-4567 NOTE that the 4567 digits shown above relate to the last four digits of the card number This question helps format the string to something like 1234-5678-9123-4567 But it does not help with the format required above While looking for answers I also came across the following solution:
Regular Expression to validate xx-xxxxxxx or xxx-xx-xxxx string1 = xxx-xx-xxxx or string1 = xx-xxxxxxx How can I make the regex accept both kinds of values for the same element? The x's represent numbers only so total number of digits = 9 (anything between 0-9) total number of elements in the value is either 11 or 10 depending on which format and total number of dashes is either 2 or 1
Find Product Key in Windows 10 | Tutorials - Ten Forums How to View the Product Key in Windows 10 The Windows 10 product key is a sequence of 25 letters and numbers divided into 5 groups of 5 characters each (ex: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX) that is used to activate the 32-bit or 64-bit Windows 10 edition that you have installed OEM PCs store and encrypt the product key in the UEFI firmware chip The product key is no longer on a COA sticker to