fork download
  1. #!/bin/bash
  2. s="25.06.19 / 16:30"
  3. regex='^[0-9]{2}\.[0-9]{2}\.[0-9]{2}([0-9]{2})?[[:space:]]*/[[:space:]]*[0-9]{2}:[0-9]{2}$'
  4. if [[ "$s" =~ $regex ]]; then
  5. echo "Matched!"
  6. fi;
  7.  
Success #stdin #stdout 0s 19720KB
stdin
Standard input is empty
stdout
Matched!