[texworks] regexp

Jonathan Kew jonathan at jfkew.plus.com
Wed Oct 8 04:12:41 CEST 2008


On 8 Oct 2008, at 1:09 AM, Alain Delmotte wrote:

> Hi,
>
> I am testing TeXworks possibilities and I would like to know which  
> are the regular expressions one.

It uses the QRegExp class in Qt4, so look up documentation on this;  
e.g. http://doc.trolltech.com/4.4/qregexp.html#details

> Does TeXworks follow one of the existing systems: Perl, Javascript,  
> PHP,...

QRegExp is generally Perl-like, though it does not support some of the  
more advanced features.

>
> In particular, are there instructions for the end of line or return  
> (\n or \r?), the tab character (\t), and so on?

\t matches the tab character. I thought \n should match newline, but  
currently this doesn't seem to work as I'd expect, so I'll look into  
that.

JK



More information about the texworks mailing list