正则表达式修饰符:m

在以下文本中,短语 "you" 在行首出现了多少次:

you are better than
you think
2

匹配到的位置如下:

# are better than
# think  

(每个匹配项都被替换为 # 字符)