Skip to content

Instantly share code, notes, and snippets.

@oppahero
Created November 9, 2018 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oppahero/6125dcb1ad6f6a18b2289324284982ba to your computer and use it in GitHub Desktop.
Save oppahero/6125dcb1ad6f6a18b2289324284982ba to your computer and use it in GitHub Desktop.
match = regex_text.match(data);
if(match.hasMatch()){
//update chat display
ui->textEdit_ChatDisplay->append(tr("<b>%1 <font color = \"LightGrey\">[%2]</font>: </b> %3")
.arg(match.captured(2),match.captured(1),match.captured(3)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment