Added functionality into actually matching between "XXX" and "YYY", however it doesn't work because beginOperation is always false for some reason in printRegex(); Blocked until this gets resolved.