[OS X TeX] Regular expressions with TeXShop

John Coxon john at johncoxon.co.uk
Sun Oct 19 18:50:50 EDT 2014


A good tutorial can be found at http://regexone.com/ if you want to learn the ropes.



John Coxon

On Sun, Oct 19, 2014 at 11:25 PM, BELLAICHE André
<andre.bellaiche at imj-prg.fr> wrote:

> 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/7c4a1406/attachment.html>


More information about the MacOSX-TeX mailing list