Skip to content
Prev 343170 / 398513 Next

regex pattern assistance

Tom
Hi,
Can anyone please assist.

given the string
I would like to extract "S01-012"

require(stringr)
both nearly work. I expected I would use something like:
but I don't seem able to get the square bracket grouping to work
correctly. Can someone please show me where I am going wrong?

Thanks,
Tom