While trying to answer a SE question, I generated the following regex. Can anyone help me regarding generating a string that would comply with this regex?
^(.*)((?=(first ending\.))|(?=(second ending\.)))$
I need to match this:
contents. first ending.
contents. second ending.
contents. first ending. second ending.
contents. second ending. first ending.