I want to write a regex expression for multiline comment in Python. I was trying to modify this expression for multiline comment in Java, but I wasn't able to do it, because in Python multiline comment works in a different way.
Regex expression for Java:
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(//.*)
An example of multiline comment in Python:
''' comment comment
comment comment
'''
or
""" comment comment
comment comment
"""