[OS X TeX] Regular expressions with TeXShop

BELLAICHE André andre.bellaiche at imj-prg.fr
Sun Oct 19 18:10:14 EDT 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: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20141019/0df14433/attachment.html>


More information about the MacOSX-TeX mailing list