Q:

Regex not working as expected

I'm having troube modifying this regex. Right now it matches . or ? but I want to change it to match dot followed by a space. How do I do that?
'('/([.|?])/'

By the way, I need the grouping to stay. 

A:

What about this:
(\. |\?)

......

A:

The easiest way would be:
'('/(\. )/'

or, if you want a space or a tab or a new-line:
'('/(\.\s)/'

Note that I only changed the part in the inner parenthesis as that part seems to be the focus of your question.

