Answer the question
In order to leave comments, you need to log in
Why is parenthesis not escaped in regex?
There is a conditional chemical reaction
NH3 + K[Al(OH)4] + NaCl trying to find the substance K[Al(OH)4] in it
using a regular expression . /\bK\[Al\(OH\)4\]\b/i
The first bracket [ is escaped, but the second ] is not. How to fix it?
https://regex101.com/r/Fv6Qc9/2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question