fork(1) download
  1. #!/bin/bash
  2. s="{'ID': 'X.id: 4243.4, Y.id 534534', 'text': 'text - text'}"
  3. echo "$s" | grep -E "{'ID': 'X\.id: [0-9]+\.[0-9], Y\.id [0-9]+', 'text': 'text - text'}"
  4. echo "$s" | grep "{'ID': 'X\.id: [0-9][0-9]*\.[0-9], Y\.id [0-9][0-9]*', 'text': 'text - text'}"
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
{'ID': 'X.id: 4243.4, Y.id 534534', 'text': 'text - text'}
{'ID': 'X.id: 4243.4, Y.id 534534', 'text': 'text - text'}