text = 'text data-content="abc123" string'puts text.gsub(/\s*data-content="[^"]*"/, '')
Standard input is empty
text string
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!