var alpha = "/*\nstring_1\nstring_2\nstring_3\n*/"; alpha.replace(/([a-zA-Z_/*0-9]{1,100}(?=\n)?)/g, "[c]$&[/c]");