I need help to built regular expression for
string which does not start with pcm_ or PCM_
any guess!!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The regex solution would be
(?i)is the inline version ofRegexOptions.IgnoreCase^matches the start of the string(?!pcm_)is a negative lookahead assertion, that is true if the string does not start with “pcm_” or “PCM_” (but also “PcM_, …)