Sorry, I'm having a hard time contemplating an AND situation because the comparison is a case-by-case basis (or I am just a dunce).
Adding to our list of text.
1. DS0616701949
2. 06167AG01949
3. 061676614011
4. 06167ag01949
5. 06167WG01949
The following will grab all lines except #2 (#1,3,4,5):
(ssget "_X" '
((0 .
"*TEXT") (1 .
"~#####AG####9")))
The following will only grab #4:
(ssget "_X" '
((0 .
"*TEXT") (1 .
"#####[a-z][a-z]#####")))
The following will grab #2,3,4,5 (not #1):
(ssget "_X" '
((0 .
"*TEXT") (1 .
"#####[~.][~.]#####")))
The following will grab #2 and 4:
(ssget "_X" '
((0 .
"*TEXT") (1 .
"#####AG#####,#####ag#####")))
good point. I find it interesting/frustrating that this does not work, as it selects all three:
(ssget "_X" '
((0 .
"*TEXT") (1 .
"~############,~#####AG#####")))
Logically I understand it. But when using wildcards in dialogs, say a layer filter, I don't know of any workable options. As I understand it, the comma is an OR separator, what is missing is an AND separator.