public String remove ( String txt ) { for ( Pattern p : patterns . keySet ( ) ) { System . out . println ( "p: " + p ) ; System . out . println ( "b: " + txt ) ; txt = p . matcher ( txt ) . replaceAll ( patterns . get ( p ) ) ; System . out . println ( "a: " + txt ) ; } return txt ; }
Takes a string and returns it without ligatures in it