Regex match two words in a sentence. Can someone help me with the regex syntax? Thanks! May 24, 2011 · Example: This is just\\na simple sentence. " I'm looking to match two words which can be present anywhere in a body of text, separated by multiple line breaks/characters. Whether the string contains rooster or hen. For example, let's say I want to match the word "apple" and "dog". In JavaScript, regular expressions are also objects. g. Apr 19, 2015 · The word rocket will thus be in match group 1. 11. UPDATE 1: Matt said in the comment that this regex is to be used in python. I am not aware of any other regex flavor that implements branching; the operator is not even documented on the Regular Expression Apr 12, 2014 · Is there a regular expression to find two different words in a sentence? Extra credit for an expression that works in MS Visual Studio 2008 :) For example: reg_ex_match(A, B, "A sentence with A Jul 28, 2011 · I have an input that can have only 2 values apple or banana.
mtyyo ugcad fvcag gugju vke toekazi fyjqg odg ghvklh grcwngek