checking whether a given text matches given regular expression or not, wild- characters included are only * and +