Website: regular-expressions.info

Rank: 1233 / 1275

2 selected articles

Finding or Verifying Credit Card Numbers - Regexp Patterns

Book Reviews

Finding or Verifying Credit Card Numbers

With a few simple regular expressions, you can easily verify whether your customer entered a valid credit card number on your order form. You can even determine the type of credit card being used. Each card issuer has its own range of card numbers, identified by the first 4 digits.

You can use a slightly different regular expression to find...

Read more

Related topics : bitcoin credit card numbers / bitcoin card numbers

Regex Tutorial - Non-Printable Characters - Regexp Patterns

Non-Printable Characters

You can use special character sequences to put non-printable characters in your regular expression. Use \t to match a tab character (ASCII 0x09), \r for carriage return (0x0D) and \n for line feed (0x0A). More exotic non-printables are \a (bell, 0x07), \e (escape, 0x1B), and \f (form feed, 0x0C). Remember that Windows text files use \r\n to terminate lines, while UNIX...

Read more

Related topics : bitcoin source code python