Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. qjulian

    regex in bash

    this sounds good ^[[:alnum:]][-[:alnum:]]{0,$((LEN-1))}$
  2. qjulian

    regex in bash

    hello, I want to check in bash shell if a string on VAR does not begin with "-" and at the same time if the string is built of [-_a-zA-Z0-9] but not longer than specified on LEN variable LEN=10 [[ $VAR =~ ^[_a-zA-Z0-9][-_a-zA-Z0-9]{1,${LEN}}$ ]] how to test length of whole marked in red is not...

Part and Inventory Search

Back
Top