Searching For String Literals

前端 未结 6 1063
情书的邮戳
情书的邮戳 2020-12-09 17:21

In the quest for localization I need to find all the string literals littered amongst our source code. I was looking for a way to script this into a post-modification source

6条回答
  •  温柔的废话
    2020-12-09 17:58

    hi this is regex for searching literals, that I use to find a text for translation. it also includes empty spaces and different quotes

    regex: ([",,'])([\w,\s]*)([",,'])

    searchstring: var test='This is a test';

提交回复
热议问题