grep - Matching string with regex -


I keep my head against the wall in search of a reggae that matches any of these types of string :

  - 7928ae02-A-- -7928ae02-B-- -7928ae02-F-- -7928ae02-H-- -7928ae02-Z--   < P> string two dashes, 8 letters of any letter or number, one dash, one uppercase AZ and two dashes  

Here I am:

  grep '^ - [a-fA-F0- 9] {8} - [AZ] - $ '   

This can work

  grep - e - '^ - [[alnum:]] {8} - [[: Minister:]] - $ '   

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -