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

2019-06-28 Thread David Pirotte
Hello, > ... > It turns out that there are several flavors of regular expressions in > common use, with different features and syntax. The link you provided > is using PCRE (PHP) regular expressions (see the "flavor" pane on the > left), and there are three other supported flavors on that web sit

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

2019-06-18 Thread tomas
On Tue, Jun 18, 2019 at 07:08:06AM -0400, Mark H Weaver wrote: > Hi, > > Abdulrahman Semrie writes: > > > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or > > right bracket in it [...] > It turns out that there are several flavors of regular expressions in > common use, wit

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

2019-06-18 Thread Mark H Weaver
Hi, Abdulrahman Semrie writes: > 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]+" "T

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: >

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