fork(11) download
  1. local np = 'abc_123'
  2. local a = np:match('^[a-zA-Z0-9_][a-zA-Z0-9_][a-zA-Z0-9_]+$' )
  3. print (a)
  4. local np2 = 'ab'
  5. local b = np2:match('^[a-zA-Z0-9_][a-zA-Z0-9_][a-zA-Z0-9_]+$' )
  6. print (b)
Success #stdin #stdout 0s 2832KB
stdin
Standard input is empty
stdout
abc_123
nil