Back to LanguageTool Homepage - Privacy - Imprint

Problems About regex ".*"


(John) #1

Hi,

I would like to match texts like "although.....but", for which I use

although
.* # match any number of words
but

However, it is not working?

Anyone body could help?

Thanks
John


(Ruud Baars) #2

Please look at the examples on 'skip' in the wiki, these show how to skip tokens. What you ut in the xml is working within 1 token.

Ruud


(regexer) #3

Try to use .? , because . is greedy . Or if you know what will be inside this token - define it. For example
[^<]+ - when you know that < will never be present.
Or use this online tool http://www.regex-builder.com/