regular expression for action (only works when recieve actions from
others)
fix regular expression errors