Posts by marcelovca90 • 126 points
1 post
-
1
votes1
answer52
viewsA: Problem parsing regular expressions of a jTextArea
The flags Pattern.DOTALL and Pattern.MULTILINE can help you. String patternString = "[\\s\\S]*^inicio.*[\\s\\S]*fim$[\\s\\S]*"; Pattern pattern = Pattern.compile(patternString, Pattern.MULTILINE);…