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

More Quoting Hell - Regular Expressions 102

 More Quoting Hell - Regular Expressions 102

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 subMatchN variables exist, then the parenthetical parts of the matching string are copied to the subMatch variables, working from left to right. regsub ?switches?

exp string subSpec varName Searches string for substrings that match the regular expression exp and replaces...