FlexHub Forum

pattern not use regexp

pattern not use regexp
« on: May 12, 2012, 22:52:44 »
Hey i have a big problem i have add some pattern, but it use the lua regexp, but i dont like to use it.

add pettern:
!addpattern MC "e-mail" -p6 -a260
!addpattern MC "[at]" -p6 -a260

how to can i do so it not use the regexp thing ?

Re: pattern not use regexp
« Reply #1 on: May 13, 2012, 01:03:55 »
 in lua patterns the characters ^$()%.[]*+-? are special,  if you want to match them in a pattern you use the % character as an escape character.
For example if you want to match "e-mail" you write it as "e%-mail"


Re: pattern not use regexp
« Reply #2 on: May 13, 2012, 09:25:33 »
Thank en_dator :)