Separated open regex into segments

- To allow debugging easier
- Added failing rspec examples
Fix do-end when one letter in front of period
Find another failing example
Fix task spec
Fix rake spec example