in reply to Re^3: extracting value in a string after checking value after colon ':'
in thread extracting value in a string after checking value after colon ':'

i only want to extract the node number (250,251..) only if string cpus: is empty after the colon.
That's seems to be exactly the output from Athanasius's code. Or, if it is not, then please explain in which respect Athanasius's code does not produce what you want. And also show the code you're using.
  • Comment on Re^4: extracting value in a string after checking value after colon ':'