Bagian 2·89 hari lalu
Turn examples into a small test table: input, expected match, expected captures and reason. Include empty strings, Unicode, newlines, repeated delimiters and very long near-misses. Then check anchors and flags explicitly—^/$, multiline, dot-all, case-insensitive and global behavior change results across engines. A regex is reliable only when its non-matches are tested as carefully as its matches.