I am receiving an error on the .match regex module function of TypeError: An integer is required.
Here is my code:
hAndL = hAndL.replace('epsilo\ell','epsilon')
pattern = re.compile("\frac{.*?}{ \frac{.*?}{.*?}}")
matching = pattern.match(pattern,hAndL)
hAndL is a string and pattern is a..pattern.
I'm not sure why this error is happening, any help is appreciated!
match()is a starting position integer, not a string.