Match Sequence using RegEx After a Specified Character

前端 未结 3 917
温柔的废话
温柔的废话 2020-12-05 13:46

The initial string is [image:salmon-v5-09-14-2011.jpg]

I would like to capture the text \"salmon-v5-09-14-2011.jpg\" and used GSkinner\'s RegEx Tool

3条回答
  •  暖寄归人
    2020-12-05 14:28

    If you are always looking at strings in that format, I would use this pattern:

    (?<=\[image:)[^\]]+
    

    This looks behind for [image:, then matches until the closing ]

提交回复
热议问题