fork download
  1. #!/bin/bash
  2. test='0xffffffc0006e0584 is in some_function (/path/to/my/file.c:93).'
  3. reg='\(([^()]+):([0-9]+)\)'
  4. if [[ $test =~ $reg ]]; then
  5. echo ${BASH_REMATCH[1]};
  6. echo ${BASH_REMATCH[2]};
  7. fi
Success #stdin #stdout 0s 4560KB
stdin
Standard input is empty
stdout
/path/to/my/file.c
93