Home > OS >  Awk regular CKECK writing method question
Awk regular CKECK writing method question

Time:12-23

Now for a second development sh document, met a regular check problem:
Using gawx circulation of multiple value judgment, is now one of the fields on the additional regular check, format for ^ [0-9 a zA - Z] {5} _ [0-9 a zA - Z] {5} $
If regular use, first time contact, awx regular didn't find the way of writing, have know can answer it for me?
$1 value: a1234_b1234
Specific code to achieve the following example:
Gawx XXXXXXXX {
If ($1=~ '^ [0-9 a zA - Z] {5} _ [0-9 a zA - Z] {5} $') {
}
}
  • Related