Metadata-Version: 2.1
Name: split-nth
Version: 0.1.1
Summary: Split strings at the N-th occurrence of a word
Author: S.Hasini, Deepak Das, Irfan Ahmed
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown

# split-nth

A small utility to split a string at the N-th occurrence of a specific word.

## Installation

```bash
pip install split_nth


##Usage
from split_nth import split_on_word

s = "cast (int as dec) as abcas"
print(split_on_word(s, word="as", occ=2))
# Output: ['cast (int as dec)', 'abcas']


