Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this mean #(?-mix:facebook|twitter)?

What does the expression #(?-mix:facebook|twitter) mean in the following output from rake routes ?

user_omniauth_callback        /users/auth/:action/callback  users/omniauth_callbacks#(?-mix:facebook|twitter)
like image 526
Himshwet Avatar asked Jul 01 '12 21:07

Himshwet


People also ask

What does that means or mean?

"What does this mean?", "This means something." "Mean(s)", as in attempting to convey meaning, is "Mean" where referring to yourself ("I mean"), referring to a group of people including or not including yourself ("We mean", "They mean"), or referring to someone else in the gender-neutral. ("

What does :) mean in chat?

The :-) notation is known as a smiley, and means that the statement it follows was intended as humor. When you tilt your head to the side, you see that : is the eyes, - the optional nose, and ) is the mouth.

What does this & that mean?

phrase. If you say that you are doing or talking about this and that, or this, that, and the other you mean that you are doing or talking about a variety of things that you do not want to specify. "And what are you doing now?"—"Oh this and that." See full dictionary entry for this.

What does ?!? mean?

You're probably already using '?! ' or '!? ' in your writing. A question mark and an exclamation mark are usually used together to express excitement, surprise, or disbelief. The interrobang was invented to combine these marks together to save space and precious characters.


1 Answers

It's a regular expression snippet and it effectively matches either facebook or twitter in that position, and is case-sensitive (so won't match fAcebOOK or TWITTER).

If you want to know more about regular expressions then start here :)

like image 79
smathy Avatar answered Oct 14 '22 21:10

smathy