Updated memory initializer regex

Updated the memory initialize regex to work with some of the recent changes.