I would like to get suggestions as how to perform the following using pattern matching regex:
Input :
"Exception : CEX Exception : TEX abc def ljj"
Regex for : I want to get all lines with "Exception" followed by anything except CEX .
Required Output : Exception TEX .