Skip to content

Instantly share code, notes, and snippets.

@wleepang
Created May 3, 2012 17:39
RegExNamedCapture:R:ConsoleOutput
$src
[1] "chA_0001" "chA_0002" "chA_0003" "chB_0001" "chB_0002" "chB_0003"
$result
[1] 1 1 1 1 1 1
attr(,"match.length")
[1] 8 8 8 8 8 8
attr(,"useBytes")
[1] TRUE
attr(,"capture.start")
ch id
[1,] 3 5
[2,] 3 5
[3,] 3 5
[4,] 3 5
[5,] 3 5
[6,] 3 5
attr(,"capture.length")
ch id
[1,] 1 4
[2,] 1 4
[3,] 1 4
[4,] 1 4
[5,] 1 4
[6,] 1 4
attr(,"capture.names")
[1] "ch" "id"
$names
$names$ch
[1] "A" "A" "A" "B" "B" "B"
$names$id
[1] "0001" "0002" "0003" "0001" "0002" "0003"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment