0

I am trying to check if there is whitespace just before forward slash / in string JS. I have this code now const reWhiteSpace = new RegExp("\s(?=[^/\s]*/)"); reWhiteSpace.test(values.body). But it is not working as expected.

qweeee
  • 43
  • 1
  • 1
  • 7

0 Answers0