0

Im looking to get everything to the left of nth occurrence. Currently I have:

"Hello, World"

(?:[^o]*o){2}

>> yields Hello, Wo

I want to exclude the the search character. Any help is greatly appreciated

Bjorgum
  • 1,754
  • 1
  • 3
  • 11

0 Answers0