i want to split the columns and get the data using the regex. looking for a simpler solution using backreferences.
previous balance payments adjustments charges payment without fine payment with fine
20,251.97 - 0.00 - 0.00 + 53,391.67 = 73,643.64 74,393.64
Here is the code
#!/usr/bin/perl
use strict;
my $regex = qr/^(\d|-)?(\d|,)*\.?\d*$/;
my $data = "20,251.97 - 0.00 - 0.00 + 53,391.67 = 73,643.64 74,393.64"