I am struggling to interpret the regex (?i)(^|[[^\\p{L}]&&\\D])(todo)($|[[^\\p{L}]&&\\D])
as used here: https://github.com/SonarSource/slang/blob/3a1b628419134646a7fcc15e93203c6ff8cc22fc/slang-checks/src/main/java/org/sonarsource/slang/checks/TodoCommentCheck.java#L37
What will it match? I understand the part about ignoring case. The part that i don't understand is [[^\\p{L}]&&\\D]
- is it really matching the p
, {
, L
characters in a character set ?