@owly
r1:RegexUtil = RegexUtil()
print(r1.extractRegex("(?<=if\s)(.*?)(?=\sthen)", "if test went ok, then good"))
print(r1.extractRegex("(?<=then\s)(.*)", "if test went ok, then good"))
:s34:
Python function that converts a string of a decimal(negative or positive) in digit form to it's word representation
import inflect
def decimal_to_words(decimal):
p = inflect.engine()
if '.' in decimal:
if decimal.startswith('-'):
integer_part, decimal_part =...
Python function that converts a string of a number in digit form to it's word representation:
import inflect
def number_to_words(number):
p = inflect.engine()
words = p.number_to_words(number)
return words
# Example usage:
print(number_to_words("12345"))
Python function that...