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, |
Details
A pattern w/o brackets will be printed which can be pasted to
https://jex.im/regulex/#!flags=&re=%5E(a%7Cb)*%3F%24
.
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 ]