<span id="mailbox-conversation"><div>A good tutorial can be found at <span style="-webkit-tap-highlight-color: transparent;">http://regexone.com/ if you want to learn the ropes.</span>
</div></span><div class="mailbox_signature">
<br>John Coxon</div>
<br><br><div class="gmail_quote"><p>On Sun, Oct 19, 2014 at 11:25 PM, BELLAICHE André <span dir="ltr"><<a href="mailto:andre.bellaiche@imj-prg.fr" target="_blank">andre.bellaiche@imj-prg.fr</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>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%7Bred%7D%7B(+)%7D">\\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></p></blockquote></div><br>