Java regular expression to match _all_ whitespace characters

前端 未结 7 427
别那么骄傲
别那么骄傲 2020-12-08 02:36

I\'m looking for a regular expression in Java which matches all whitespace characters in a String. \"\\s\" matches only some, it does not match   and s

7条回答
  •  我在风中等你
    2020-12-08 02:58

    The   is only whitespace in HTML. Use an HTML parser to extract the plain text. and \s should work just fine.

提交回复
热议问题