用于匹配字符串开头的正则表达式

0co*_*ool 2 c# regex vbscript

我需要帮助来构建正则表达式

以pcm_或PCM_开头的字符串

任何猜测!!!

ada*_*ost 5

无需使用正则表达式.使用String.startsWith()方法.

if (!str.StartsWith("pcm_",StringComparison.InvariantCultureIgnoreCase)) {}
Run Code Online (Sandbox Code Playgroud)