Perl is the easiest language to regex so am using that. Hope you understand it.