I need a way to make a case sensitive replace of the word 'for', I want it to check if the for is either 'for', 'for(', or 'for{'. I think you can do this with eregreplace but i don't remember how.
Adding to this, if I have
'for(int' as my string, how can i make it so that it just formats the 'for' and not the (int?
ie, it should format to '<font color=\"#0000FF\">for</font>(int'.