so sorry I was created for both way but I did some mistake in the patten after OR i’m checking the leading space now it’s ok
Regex.isMatch(yourString,“(?<=-)(\s{1})|(\s{1})(?=-)” )
so sorry I was created for both way but I did some mistake in the patten after OR i’m checking the leading space now it’s ok
Regex.isMatch(yourString,“(?<=-)(\s{1})|(\s{1})(?=-)” )