regex - (Regular Expressions) How to add Lookaround (Lookbehind) in to this expression -
I have written a regular expression, but I am confused about it to make a confusion over it.
I have the following string:
myName is myLastName is yourName is your LastName < P> And I want to use negative perspective, just match it to the mail which has not been included in my name. My name is definitely not at the beginning of the sentence, it is just between one more long phrase Even so, I have written the following match reggae ape which are both sentences (natural Form), but I want to add a condition using the negative look behind: (([a-zA -Z] *) (*) (is) ( *) (
If you Negative look-alike , then the following regex should work: ([a-zA-Z] +) (? & Lt;! \ BmyName \ B) + ([a-zA-Z] +) online demo:
(? & Lt;!! BmyName \ b) is a negative attitude, which does not match the word that is already in the Axis The string is myName . The \ b is for the word boundary.
Comments
Post a Comment