share regexp fix function