worked on making the regex pattern more dynamic via settings