<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
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.<br>
<br>
But I use TeXShop, and today I would only replace \textcolor{red}{some text} by [some text], including the square brackets.<br>
<br>
I have found that in the "find" box, I should type <br>
<br>
<a href="smb://textcolor{red}{(+)}">\\textcolor{red}{(+)}</a><br>
<br>
and in the "replace" box, I should type<br>
<br>
[\1] <br>
<br>
But it doesn't work. <br>
<br>
I get the error message "Invalid regular expression. Target of repeat operator is not specified".<br>
<br>
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.<br>
<br>
Thanks in advance,<br>
<br>
André Bellaïche<br>
</body>
</html>