What do you think?
Rate this book
168 pages, Kindle Edition
First published January 1, 2014
match = re.search(r'(?P\s*oz', 'Vol: 100 OZ', flags=re.IGNORECASE)
print(match.group('ounce_val'))
print(re.sub(r'(?P\s*oz', 'This item is \g ounce', 'Vol: 100 OZ'))