Javascript RegExp über mehrere Zeilen

2009-09-23 16:29 (2009-09-23 16:29)

Nach langem Suchen endlich: “.” fängt bei JS nämlich kein “\n” !!!

JavaScript and VBScript do not have an option to make the dot match line break characters. In those languages, you can use a character class such as [\s\S] to match any character. This character matches a character that is either a whitespace character (including line break characters), or a character that is not a whitespace character. Since all characters are either whitespace or non-whitespace, this character class matches any character.

Janos Bekesi

Software,

---
---