Video Coming Soon...
06: Advanced Repetition
I'll be honest with you and admit that I never use these. It's not because these operations aren't useful, it's more that I find most of the other operations do everything I need. I thnk you may find the same thing, so consider this exercise more of an "expansion" exercise. You learn this more to stretch your understanding of regex than to learn something you'll use constantly.
New Test File
Make a new file for this exercise named ex06.txt and put this in it:
444-55-5555
22-234567
4444 5555 6666 7777 8888
+91 444 44444
555-624-3476
These are common formats you'll find in business. The first is a US Social Security Number (SSN). The second is an EIN, which is like an SSN for businesses. The third is a credit card number. Then there's various phone numbers from different countries.
Register for Learn Regex the Hard Way
Register to gain access to additional videos which demonstrate each exercise. Videos are priced to cover the cost of hosting.