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
  • 2,054
  • 2
  • 4
  • 11

0 Answers0