testregex {lazy.tools}R Documentation

Remove Brackets and Double \s from R type Regular Expression

Description

Remove Brackets and Double \s from R type Regular Expression

Usage

testregex(pattern, expr = "")

Arguments

pattern

R type regular expression

expr

A string vector containing expressions,
or a string which contains several expressions separated by a comma,
or "".

Value

NONE

Examples

testregex( "^[[:alpha:].][[:alnum:]_.]*$" )
testregex( "^[[:alpha:].][[:alnum:]_.]*$"
        , c( "a1", "b", ".c1.", "@d_", "1_2", "._" ) )
testregex( "^((([[:alpha:]]|[.][._[:alpha:]])[._[:alnum:]]*)|[.])$"
        , "a1, b, .c1., @d_, 1_2, ._" )



[Package lazy.tools version 0.1.6 ]