User forums > Using Code::Blocks
How do regular expressions work?
End User:
--- Quote from: killerbot on July 05, 2007, 09:40:25 pm ---that's hard to explain just by forum, pff, tell us one you want to have, if it i not to complicated we can give the answer and explain that one ?
--- End quote ---
my situation:
i want to replace
--- Code: ---switch (expression)
--- End code ---
by
--- Code: ---switch ( expression )
--- End code ---
i managed to find (if|switch|for|while) \((.*?)\)
but i cannot imagine what token C::B uses for replacement
it's neither
$1 ( $2 )
nor
%1 ( $2 )
not even
\\1 ( \\2 )
what is a replacement template here?
End User:
may be you will consult me how to do it from linux command line? all *.c files at once
thanks in advance
Navigation
[0] Message Index
[*] Previous page
Go to full version