bug#36251: Regex library doesn't recognize ']' in a character class

2019-06-16 Thread Abdulrahman Semrie
I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or right bracket in it. However, the string-match function doesn’t match the ‘]’ character. To demonstrate with an example, try the following funciton: (string-match "[\\[\\]a-zA-Z]+" "Text[ab]”) The result for the above functi

bug#36251: Regex library doesn't recognize ']' in a character class

2019-06-16 Thread tomas
On Sun, Jun 16, 2019 at 08:16:29PM +0300, Abdulrahman Semrie wrote: > > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or right > bracket in it. However, the string-match function doesn’t match the ‘]’ > character. To demonstrate with an example, try the following funciton: >