Regex: To pull out a sub-string between two tags in a string

后端 未结 9 1977
情书的邮戳
情书的邮戳 2020-12-08 00:35

I have a file in the following format:

Data Data
Data
[Start]
Data I want
[End]
Data

I\'d like to grab the Data I want from between the

9条回答
  •  无人及你
    2020-12-08 01:07

    Refer to this question to pull out text between tags with space characters and dots (.)

    [\S\s] is the one I used

    Regex to match any character including new lines

提交回复
热议问题