Metadata-Version: 2.1
Name: string-grab
Version: 1.2.1
Summary: Extract one or multiple substrings between two start and end strings.
Home-page: https://github.com/Julynx/string_grab
Author: Julio Cabria
Author-email: juliocabria@tutanota.com
Maintainer: Julio Cabria
Maintainer-email: juliocabria@tutanota.com
License: GPLv2
Description-Content-Type: text/markdown
License-File: LICENSE

# string_grab
*Extract one or multiple substrings between two start and end strings.*
```python
text = """Gender: female
       Race: White
       Birthday: 3/23/1973 (50 years old)
       Mobile: 715-523-1076
       Mobile: 715-563-3967
       Street: 4674 Lynn Avenue
       City, State, Zip: Eau Claire, Wisconsin(WI), 54701"""
```
```python
from string_grab import grab

birthday = grab(text, start="Birthday: ", end=" (")
print(birthday)

>> "3/23/1973"
```
```python
from string_grab import grab_until

gender_prompt = grab_until(text, end=" female")
print(gender_prompt)

>> "Gender:"
```
```python
from string_grab import grab_after

zip_code = grab_after(text, start="Wisconsin(WI), ")
print(zip_code)

>> "54701"
```
```python
from string_grab import grab_all

for number in grab_all(text, start="Mobile: ", end="\n"):
    print(number)

>> "715-523-1076"
>> "715-563-3967"
```
```python
from string_grab import inject

inject(text, "611 Waterwheel Ln", start="Street: ", end="\n")

>> """Gender: female
   Race: White
   Birthday: 3/23/1973 (50 years old)
   Mobile: 715-523-1076
   Mobile: 715-563-3967
   Street: 611 Waterwheel Ln
   City, State, Zip: Eau Claire, Wisconsin(WI), 54701"""
```
