|
Zhiroc Adept
Joined: 04 Feb 2005 Posts: 246
|
Posted: Wed Aug 15, 2007 4:25 am
Bug in RE trigger pattern |
Do the following:
Code: |
#REGEX {^\[?foo} {#SH saw it}
#SH foo |
You'll see it doesn't match. The problem seems to be how it sets up the pattern:
Code: |
0012 STR '^\[?foo]' |
Note the extra closing "]" in the string.
One way around this is to use the pattern: "^[[]?foo" |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Aug 15, 2007 8:05 am |
Confirmed.
|
|
_________________ Asati di tempari! |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Aug 15, 2007 10:49 am |
See also this thread.
|
|
|
|
Daagar Magician
Joined: 25 Oct 2000 Posts: 461 Location: USA
|
Posted: Wed Aug 15, 2007 3:23 pm |
This is probably obvious, but this bug also impacts the ability to use regex to capture ansi patterns using the "\033\[34m" syntax (though I haven't tried it with Fang's/Zhiroc's workaround).
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Aug 15, 2007 7:12 pm |
This is already fixed in v2.0 :)
|
|
|
|
Daagar Magician
Joined: 25 Oct 2000 Posts: 461 Location: USA
|
Posted: Wed Aug 15, 2007 8:53 pm |
Stop teasing! ;)
|
|
|
|
|
|