Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Boolean extrawrite = false;
- write = true;
- String inhalt = "";
- for (int i = 0 ; i < matchercontent.length();i++){
- if(i-3 < 0 || i+2 > matchercontent.length()){
- }
- else if(matchercontent.charAt(i-3) == '<' && matchercontent.charAt(i-2) == 'b' && matchercontent.charAt(i-1) == 'r' && matchercontent.charAt(i) == '>'){
- extrawrite = true;
- write = true;
- }
- else if(matchercontent.charAt(i) == '<' && matchercontent.charAt(i+1) == 'u' && matchercontent.charAt(i+2) == 'l'){
- extrawrite = false;
- }
- else if(matchercontent.charAt(i) == '<'){
- write=false;
- }
- else if(matchercontent.charAt(i) == '>'){
- write=true;
- }
- else if (write == true && extrawrite == true){
- inhalt += matchercontent.charAt(i);
- }
- }
- System.out.println("===================== PRÜFUNGSINHALT:" + inhalt);
- // ==== INSERT: Speicher in den Inhalt ==== inhalt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement