Luke Posted June 5, 2021 Share Posted June 5, 2021 (edited) Do special characters (e.g. ".") need to be quoted when they're inside square brackets? Unless I'm missing something, it should not be necessary to quote them (i.e., they're always treated literally except for "[" and "]")... But if that's really the case, then I cannot understand why the following string {none,1,\(1\|3\),\(1\|3\|5\),\(1\|3\|5\|7\)} DOES NOT match ^{[^.,;{}%TAB%]+,[^.,;{}%TAB%]+\(,[^.,;{}%TAB%]+\)*}$ Edited June 5, 2021 by Luke Quote Link to comment
Luke Posted June 5, 2021 Author Share Posted June 5, 2021 (edited) I mean, I tested that string here and everything is fine, so I can't really understand what I'm missing... OK, never mind, the error was somewhere else in my code... Edited June 5, 2021 by Luke Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.