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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -