I'm discovering the regex between /(\\r|\\n|\*|\:)/
and /^\[[^*\\:\[\]'\r\n]{0,200}\]/
The first regex is \r or \n or * or :, and the second regex is any character except for * or \ or : or [] or ' or \r or \n in square bracket til 200 times.
What I'd need to make was allowing any character except for * or \ or : or [] or ' or \r or \n in square bracket til 200 times, so I made the second regex.
Then I found someone wrote the first regex, and was curious whether I need to implement the second regex similar to the first one using () |.
I know the fist one is for grouping and capturing, but needs more steps to check. And the second one is just for optimized one with limit with group and capture.
Is there anyone who can add more knowledge to what I know? Thanks.