Skip to content
Prev 171491 / 398506 Next

using perl regular expression

Katrine Damgaard wrote:
pattern = '^N[E-H]Q(?!29)[0-9]{2}'
index = grep(pattern, X, perl=TRUE)

note, an input like NaQ290 will *not* match;  you may need to further
specify the pattern.

vQ