Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

edited tags
Link
RONNY
  • 41
  • 3
Source Link
RONNY
  • 41
  • 3

Extract and Print only accent characters through regular expression in JAVA

Been trying to extract only accent characters[a particular word] from a multiple text files in a folder. Don't want to remove or convert accent characters to normal characters but print only those characters which are accent in multiple text files and mixed files which has both accent[words] and normal characters. in JAVA

**only to extract all accent specific words. ** after searching and exploring for a while this a link below is a type of one solution, similar regex but doesn't work as required also select null values and normal characters. Regex accented Characters for special field

another solution found for that is ([a-zA-Z]|[à-ü]|[À-Ü]) it selects each letter separately not feasible as it not word specific and also selects both normal and accent.

lang-java

AltStyle によって変換されたページ (->オリジナル) /