[OS X TeX] Regular expressions with TeXShop

BELLAICHE André andre.bellaiche at imj-prg.fr
Mon Oct 20 00:10:14 CEST 2014


I am lost with regular expressions. Moerover, it seems that they are various dialects of regular expressions depending of the OS or the programming language you use.

But I use TeXShop, and today I would only replace \textcolor{red}{some text} by [some text], including the square brackets.

I have found that in the "find" box, I should type

\\textcolor{red}{(+)}<smb://textcolor{red}{(+)}>

and in the "replace" box, I should type

[\1]

But it doesn't work.

I get the error message "Invalid regular expression. Target of repeat operator is not specified".

Can somebody help me? Also, where can I find a good introduction to the subject? In what I find on the Internet, they suppose that you know everything about the subject except the thing they are presently describing. Just like a Chinese grammar written in Chinese.

Thanks in advance,

André Bellaïche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20141019/0df14433/attachment.html>


More information about the macostex-archives mailing list