Format Number Based on Regular Expression
**Examples**
>*{{.1234|regex_comma_number:'%.4f'}}
>*'0.1234'
>*{{100|regex_comma_number:'%i'}}
>*'100'
>*{{ 234.5678|regex_comma_number:'%.4f'}}
>*'234.5678'
>*{{234.5678|regex_comma_number:'$%.4f'}}
>*'$234.5678'
>*{{1000|regex_comma_number:'%i'}}
>*'1,000'
>*{{1234.5678|regex_comma_number:'%.4f'}}
>*'1,234.5678'
>*{{1234.5678|regex_comma_number:'$%.4f'}}
>*'$1,234.5678'
>*{{1000000|regex_comma_number:'%i'}}
>*'1,000,000'
>*{{1234567.5678|regex_comma_number:'%.4f'}}
>*'1,234,567.5678'
>*{{1234567.5678|regex_comma_number:'$%.4f'}}
>*'$1,234,567.5678'
>*{{-100|regex_comma_number:'%i'}}
>*'-100'
>*{{-234.5678|regex_comma_number:'%.4f'}}
>*-234.5678'
>*{{-234.5678|regex_comma_number:'$%.4f'}}
>*'$-234.5678'
>*{{-1000|regex_comma_number:'%i'}}
>*'-1,000'
>*{{-1234.5678|regex_comma_number:'%.4f'}}
>*'-1,234.5678'
>*{{-1234.5678|regex_comma_number:'$%.4f'}}
>*'$-1,234.5678'
>*{{-1000000|regex_comma_number:'%i'}}
>*'-1,000,000'
>*{{-1234567.5678|regex_comma_number:'%.4f'}}
>*'-1,234,567.5678'
>*{{-1234567.5678|regex_comma_number:'$%.4f'}}
>*'$-1,234,567.5678'`
- templatetag
- regex
- format
- comma
- number