solving issue with regex expression