Match everything delimited by another regex?

前端 未结 2 953
再見小時候
再見小時候 2021-01-26 21:31

I\'m currently trying to make a regex that will find all the sentences in a block of text, and so far I\'ve got this;

(?=(?

        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-26 21:37

    (Moved from your closed newer question)
    In your case, the lookbehinds should come before the periods.
    Condensing your expression, it is

    Update - Between it you could just split discarding delimiters

     # (?:(?

    Or, split keeping delimiters

     # ((?:(?

提交回复
热议问题