I want a single regex that when applied to : “firstsecondthird” will match “firstthird” (in single group, ie in C# Match.Value will be equal to “firstthird”).
Is that possible? we can ignore suffix or prefix , but middle?
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.
match a string that starts with ‘first’, has zero or more other characters, then ends with ‘third’. Is that what you mean?
Or, do you mean if you find a string ‘firstsecondthird’, ditch everything apart from ‘first’ and ‘third’?