trivedigaurav / emr-nlp-server

This repository has been moved to http://github.com/nlpreviz/emr-nlp-server
GNU General Public License v3.0
1 stars 0 forks source link

Skipped gram in multiline #11

Open trivedigaurav opened 9 years ago

trivedigaurav commented 9 years ago

When the skipped word starts from a new line, the pattern is not correctly formed:

Eg. appendiceal\s+orifice\s+were\s{0,1}(\S+\s+){0,1}visualized

The correct pattern should have been: appendiceal\s+orifice\s+were\s*(\S+\s+){0,1}visualized

trivedigaurav commented 9 years ago

I have fixed this with a17a6171ba8d5a05a94e851933c4425616f41856 but I am not sure if I am doing this right. Would like to get this reviewed by @pnvphuong...