Regex expression to match string not containing other two substrings?

Have a look at this in particular the section on positive and negative look-behinds.

Have a look at this in particular the section on positive and negative look-behinds. Something similar to (this is untested) this: (?String1*? |*?

String2*? )"/paths.

If you use a flavor that supports lookaheads, this will work: ^(?:(?! String1|string2|/paths). )*/paths.

You may want to go around another way to do this with and if/else, ie check for string1 or string2 in your string, if its found, then don't process. If "string1" in string or "string2" in string then ... else process end if.

I used the following sed command to do so sed -i -e '/string1\|string2/! S/paths/fix_paths/gI' FILE_NAME It does not do exactly search for the strings prior my paths, but it matched what I intended to match and worked for my specific case. Thanks all for your help.

You one grep for what you want and another with -v for what you don't what: $ grep want_string input_file | grep -v unwant_string.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions