Matching decimal numbers and currency


show more Matching decimal numbers and currency provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions show less
please wait ...

Matching decimal numbers and currency

In this movie, we'll write regular expressions to match decimal numbers, and currency. We'll start with decimal numbers, which are also referred to as floating point numbers. And typically a decimal, or floating point number, looks something like this: 5.1. On the left side, we have the integer, or whole portion. In the middle, we have the dot, or decimal, and then on the right side, we have the fractional portion. Now of course, it's not just one number on each side. You can have many numbers on each side, and if there is no whole number or integer portion, then you can have a zero there, like 0.123, or you can omit the zero, and just have .345.

The zero in the second case is just assumed. There's also the possibility of the reverse of that, which is that we have an integer portion, but no fractional portion, in which case we could omit both the decimal, and the fractional portion after it, and it's just assumed. So then we could have a number like 23. That's a valid ...

Matching decimal numbers and currency
Video duration: 6m 45s 5h 36m Intermediate

Viewers:

Matching decimal numbers and currency provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions

Subject:
Developer
Software:
Regular Expressions
Author:
please wait ...