Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- patron_comentario = re.compile(r'/\*(.*?)\*/')
- comentario_java = '/* Comentario en Java.*/'
- print(patron_comentario.findall(comentario_java))
- comentario_java = '''/*Comentario multilínea
- Java.*/'''
- print(patron_comentario.findall(comentario_java))
- patron_comentario = re.compile(r'/\*((?:.|\n)*?)\*/')
- print(patron_comentario.findall(comentario_java))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement