I have expression:<tr id = "ololo">Hello World <br> !!!</tr>
Output should be: Hello World !!!
But, it was: My sequence:Hello World <br> !!!
This library (perl regexp) works fine with python, so this regexp get right result, but LAbView not.
This pthon script:
[/color][color=#1C2837]import reif __name__ == '__main__': data = '''<tr id = "ololo">Hello World <br> !!!</tr>''' table_regex = re.compile("<(.*?)>",re.IGNORECASE) print("FIRST EXRESSION ---------------------") print(table_regex.search(data).group()) print("SECOND EXRESSION---------------------") p2 = data[table_regex.search(data).end():] print(table_regex.search(p2).group()) print("THIRD EXRESSION---------------------") p3 = p2[table_regex.search(p2).end():] print(table_regex.search(p3).group()) pass[/color][color=#1C2837]
returns:
FIRST EXRESSION ---------------------
<tr id = "ololo">
SECOND EXRESSION---------------------
<br>
THIRD EXRESSION---------------------
</tr>
so, this regexp should works fine.
Oh, you right, thanks.