Are regular expressions that horribly slow? This is much more readable:
```ruby
str =~ /@charset "([^"]+)"/
```