Menu

#477 Incorrect RegEx match

1.6.17
Invalid
nobody
None
Medium
Defect
2017-04-08
2017-02-03
HFP
No

Searching for \s\s*$ or \s+$ appears to match even if there is no such character. On the other hand *$ (two regular spaces, star, dollar) works correctly. However, the latter one is not able to find mixes of different trailing whitespaces.

Discussion

  • Stefan Kueng

    Stefan Kueng - 2017-04-08
    • status: New --> Invalid
     
  • Stefan Kueng

    Stefan Kueng - 2017-04-08

    \s doesn't just match tabs and spaces. There are various other whitespace characters defined in UNICODE.

     
MongoDB Logo MongoDB