如何在正则表达式中表示以下内容:
这是我目前的进展:
然而,这会将每个空格都转换为1个制表符。欢迎提供任何帮助。
foreach line
look at the beginning of the string and convert every group of 3 spaces to a tab
Stop once a character other than a space is found
这是我目前的进展:
这是我目前的进展:
/^ +/\t/g
然而,这会将每个空格都转换为1个制表符。欢迎提供任何帮助。