gsub("–", "ABC", "reported – estimate")gsub("[-–—]", "ABC", "reported – estimate — more - text")
Standard input is empty
[1] "reported ABC estimate" [1] "reported ABC estimate ABC more ABC text"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!