Regex for single quote within single quotes

后端 未结 1 538
北荒
北荒 2020-12-21 09:07

OK, so this is what I\'m trying to do :

  • I\'ve got a complete SQL script
  • Some of the \'s inside the values have not been properly escaped<
相关标签:
1条回答
  • 2020-12-21 09:21

    Match this regex:

    ('[^']*)'s([^']*')
    

    And replace with:

    $1\'s$2
    

    Live Demo: http://regexr.com?368bu

    0 讨论(0)
提交回复
热议问题