# Regualr Expression for C comments [duplicate]

• @Noor Your homework is your own to do, otherwise you'll learn little to nothing. That said, if you have regular expressions (!= regex, btw) $r_1$ and $r_2$ for both types, joining them like $r_1 + r_2$ should do the trick. (What do you match; the whole text? Lines?) – Raphael Nov 4 '14 at 18:28