wcmatch - AutoCAD AutoLISP function - JTB World
* (asterisk) Matches any character sequence, including an empty one, and it can be used anywhere in the search pattern: at the beginning, middle, or end.
jtbworld.com
| Wild-card characters | |
| Character | Definition |
| # (pound) | Matches any single numeric digit. |
| @ (at) | Matches any single alphabetic character. |
| . (period) | Matches any single nonalphanumeric character. |
| * (asterisk) | Matches any character sequence, including an empty one, and it can be used anywhere in the search pattern: at the beginning, middle, or end. |
| ?(question.mark) | Matches any single character. |
| ~ (tilde) | If it is the first character in the pattern, it matches anything except the pattern. |
| [...] | Matches any one of the characters enclosed. |
| [~...] | Matches any single character not enclosed. |
| - (hyphen) | Used inside brackets to specify a range for a single character. |
| , (comma) | Separates two patterns. |
| `(reverse.quote) | Escapes special characters (reads next character literally). |
(wcmatch "Name" "???,~*m*,N*") --> T
반응형
'autocad' 카테고리의 다른 글
| 지정된 스타일 Width Factor 바꾸기 (0) | 2026.07.22 |
|---|---|
| 시트 블럭 이름 찾기 (와일드카드 사용) (0) | 2026.07.15 |
| 스탠다드, 돋움 스타일을 제외한 모든 스타일의 폭을 0.7로 바꾸는 리습 (0) | 2026.07.14 |
| 도면 왼쪽 치수 보조선의 기준점을 수평 중심선 왼쪽으로 정렬 (0) | 2026.07.10 |
| 모든 라인 중 가장 작은 X 좌표 lisp acad (0) | 2026.07.10 |