로딩
요청 처리 중입니다...

Regular Expressions 101

 Regular Expressions 101

Tcl also supports string operations known as regular expressions Several commands can access these methods with a -regexp argument, see the man pages for which commands support regular expressions. There are also two explicit commands for parsing regular expressions. regexp ?

switches? exp string ?

matchVar? ?

subMatch1 ... subMatchN? Searches string for the regular expression exp.

If a parameter matchVar is given, then the substring that matches the regular expression is copied to matchVar. If sub...