text <- "Text1==text2<text3><More here"regmatches(text, gregexpr("==|[<>]|(?:(?!==)[^<>])+", text, perl=TRUE))
Standard input is empty
[[1]] [1] "Text1" "==" "text2" "<" "text3" ">" [7] "<" "More here"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!