and you wanted to pick only the string that contains A, B and C (namely $a), what must you insert in the pattern match? Is there a way to search only for the string that has the letters A,B,C and no other letter?$a='ABCAAAABBBCCCCCAAABBBCCC'; $b='ASRGRTGRT89579843rrrrrr';
In reply to Match only certain characters? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |