testsuite/buildok/fortyeight.stp
raw| 1 | #! stap -p4 |
| 2 | |
| 3 | // regex support, without match groups |
| 4 | // TODOXXX include this if we want to test an optimization |
| 5 | // where match groups are only extracted when necessary |
| 6 | probe begin { |
| 7 | if ("flibilibilibibirty" =~ "(fl|sni)[r]ili(pi|bi)") { |
| 8 | printf ("match good\n") |
| 9 | } else { |
| 10 | printf("match fail\n") |
| 11 | } |
| 12 | exit() |
| 13 | } |