Question: I am making a Rails(3.0.4) application using the youtube\_it API. 

I installed the gem using `gem install youtube_it`, but when I run the script I get this error:

```
can't activate faraday (>= 0.7.3, runtime) for ["youtube_it-2.1.1"], already activated faraday-0.5.7 for ["instagram-0.8"]

```

How should I resolve this without removing the existing version of faraday?

Answer: 
No, regex isn't the right tool for this.

You can use a regex (though a plain substring search might be more appropriate) to find each of the words you're looking for, and assign weights to the matches (based number of occurrence of each term, appearance of all terms, relative order of the terms...) outside the regex.

But your end goal is too fuzzy, not *regular* enough - you'll need more than just regular expressions.
I'm not sure what kind of pattern you're looking to apply, but note that when using the vertical bar to write alternatives, the first one that matches will succeed. This means that if you have something like `(<pattern1>|<pattern2>)` if both of them match, the preference will be given to `<pattern1>` since that's the first one that will be checked.