[Corpora-List] XML parsers vs regex

maxwell maxwell at umiacs.umd.edu
Mon Jun 30 19:14:01 UTC 2014


On 2014-06-30 14:16, Mark A. Greenwood wrote:
> On 30/06/14 19:08, Matías Guzmán Naranjo wrote:
> 
>> wouldn't just writing <date>.*?</date> get me 'week after'?
>  That would depend on what options your regexp parser was using. By
> default many of them don't let . match newline characters,

My knowledge of grep may be dated, but I wasn't aware that any grep 
allowed '.' to match a newline.  There is a program called pcregrep 
which reportedly allows that kind of search; I haven't tried it.

    Mike Maxwell

_______________________________________________
UNSUBSCRIBE from this page: http://mailman.uib.no/options/corpora
Corpora mailing list
Corpora at uib.no
http://mailman.uib.no/listinfo/corpora



More information about the Corpora mailing list