Visual Studio Code extension to reduce wildcard pattern lines.
- Select lines. If no line is selected, the entire text is taken.
- Press Ctrl+Shift+P or F1 to show Command Palett.
- Execute Reduce Wildcard Pattenrs.
Compare each row and reduce the number of rows by wildcard matching.
- A star (
*) matches any string, including empty string. - A question mark (
?) matches any single character. - A star takes precedence over a question mark.
- The program does not determine the precedence between
x*y?zandx?y*z. However, you can makex*y*zby your hand in this case.
- The program does not determine the precedence between
- Consecutive starts are compressed into one.
- Character classes (
[...],[!...], and[^...]) are not supported. Brackets are treated as literal characters.
