testregex {lazy.tools} | R Documentation |
Remove Brackets and Double \s from R type Regular Expression
testregex(pattern, expr = "")
pattern |
R type regular expression |
expr |
A string vector containing expressions, |
NONE
testregex( "^[[:alpha:].][[:alnum:]_.]*$" )
testregex( "^[[:alpha:].][[:alnum:]_.]*$"
, c( "a1", "b", ".c1.", "@d_", "1_2", "._" ) )
testregex( "^((([[:alpha:]]|[.][._[:alpha:]])[._[:alnum:]]*)|[.])$"
, "a1, b, .c1., @d_, 1_2, ._" )