I have this 'if' condition inside my script:
if ( re.search(argVariable, newArgs) ):
However it fails when I passed on a certain value for 'argVariable'
Sample output:
Searching for the argument: -XX:+HeapDumpOnOutOfMemoryError
argVariable: "-XX:+HeapDumpOnOutOfMemoryError"
"-XX:+HeapDumpOnOutOfMemoryError" is MISSING, Adding...
I'm sure that my 'newArgs' variable already has it. (See below)
New args: -Xverbosetimestamp -Xverbose:memory -XX:+CrashOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError
What am I doing wrong?