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
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