You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Renaud Richardet <re...@gmail.com> on 2014/08/29 09:34:43 UTC

RUTA: case insensitive regex rule?

(How) can I make the following rule Case Insensitive?

"\\b((inter)?neurone?s?|cells?)\\b" -> Neuron;


Thanks, Renaud

Re: RUTA: case insensitive regex rule?

Posted by Renaud Richardet <re...@gmail.com>.
Thanks Alexandre!

Re: RUTA: case insensitive regex rule?

Posted by Alexandre Patry <al...@keatext.com>.
On 29/08/2014 03:34, Renaud Richardet wrote:
> (How) can I make the following rule Case Insensitive?
>
> "\\b((inter)?neurone?s?|cells?)\\b" -> Neuron;
You can turn the "ignore case" flag by prefixing your regex with (?i):

"(?i)\\b((inter)?neurone?s?|cells?)\\b" -> Neuron;


Hope this help,

Alexandre

-- 
Alexandre Patry, Ph.D
Chercheur Principal / Principal Researcher
http://KeaText.com