📜  正则表达式都以 - Javascript 代码示例开头

📅  最后修改于: 2022-03-11 15:03:39.877000             🧑  作者: Mango

代码示例2
Just use "^" to specify matching a pattern at the beginning of each line.
Example with grep:
grep "^pattern" file.txt