I used [regex101](https://www.regex101.com/#python) to test a simple regex (\D+\n\*), but the code generated gives a syntax error. 

```
import re
p = re.compile(ur"\D+\n*", re.UNICODE)
test_str = u"2080 usec, 240 usec\n1780 usec, 260 usec\n700 usec, 240 usec\n700 usec, 240 usec\n2480 usec, 240 usec\n700 usec, 240 usec\n700 usec, 240 usec\n"
subst = u""

result = re.sub(p, subst, test_str)

```

What's wrong? Using python 3.4.3.