Wrote the AM Probability regex function