fork(7) download
  1. #!/bin/bash
  2. text='<property name="uri" value="http://192.49.200.142:20010/some/path/1_0_0"/>'
  3. regex='<property[[:space:]]name="uri"[[:space:]]value="http://([0-9]+(\.[0-9]+)+)'
  4. if [[ $text =~ $regex ]]; then
  5. echo ${BASH_REMATCH[1]};
  6. fi
Success #stdin #stdout 0s 5180KB
stdin
Standard input is empty
stdout
192.49.200.142