I get lost while doing any complex regex.
I use the following code in java:
Pattern pattern = Pattern.compile("tentativas de regex aki");
Matcher matcher = pattern.matcher(conteudo);
while(matcher.find()) {
System.out.println(matcher.group());
}
And for the regex, it should do the following search:
[Any Special Character] [free spaces (any quantity) that contains a maximum of 1 line] [letters] ['no letter' (the first q appears ends)]
Legend:
free space - I just thought that way because I would like it to end the regex only after the first letter came, but, do not accept it if two lines or more came!
Can someone convert this to regex?