I have the following text pattern,
os2v some text openssl-56 test Is Not founded
and need to extract the word before "test Is Not founded", i.e., in this case: openssl-56
Currently I’ve tried to use this regular expression:
if (m/os2v (\s+) test is NOT founded/i){
print $1
}
But why does the code not enter the if statement?
The obvious problems are that your text doesn’t include the word “Update” and
\swill match whitespace.