I have the following regular expression who's intention is to strip the first match on this string and everything else on the line.
matchingText = re.search("
When I run the regular expression standalone in a file all by itself everything works fine.
However my problem is when this expression is added to a class the regular expression gives me all kinds of problems, and they are directly related to the presence of the . in regular expression. If i remove the . everything runs fine, I just dont get the desired results, the expression only matches the text exactly and excludes the rest of the line. I am a complete newbie at python, but I am guessing something in the class is interpreting the . as an important character. Any help would be greatly appreciated as its really bugging me
0 · ·