regex - Understanding the syntax of the "sep" argument default in tidyr's separate() function -


i reading through documentation of separate() function in tidyr package, , don't understand default sep argument.

according documentation, default sep = "[^[:alnum:]]+", means "[t]he default value regular expression matches sequence of non-alphanumeric values." interpreted mean separator "any character or substring of characters not/does not contain letter or number". if inaccurate, please let me know.

what don't understand how shorthand alphanumeric [:alnum:] became inverted caret, set of brackets, , plus sign. website linked partly explains confusion (namely [^[]] part), didn't seem talking r. standard syntax r? co-opted different language?

i new both programming , r, have not encountered kind of syntax before.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -