Initial template implementation using regular expressions