Skip to content

Instantly share code, notes, and snippets.

@SamSaffron SamSaffron/regex.rb
Created Jan 18, 2018

Embed
What would you like to do?
DATA.read.gsub(/(\s|)+([!?;]+(\s|\z))/, ' \2\3')
__END__
GET /wp-login.php HTTP/1.1 69
GET /show.aspx HTTP/1.1 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.