regular expression

Can u help me in simple regular expression that will match the string ‘123_456_7890’ but not ‘123_456_789’.

You're going to have to be a little more specific - the regular expression /0/ matches the first string and not the second but that's probably not what you wanted.

Fred

The thing you’re asking is not very specific, there’s a lot to be interpreted, but this might be what you are looking for: \d{3}\d{3}\d{4}

Best regards

Peter De Berdt

ENTER http://rubular.com/

I Need regular expression that will match the string '123_456_7890' not '123_456_789'

Do you know a site of that quality (rubular.com) for XPath??? That site rocks!!!

Well, Google found this one pretty quick: http://www.mizar.dk/XPath/Default.aspx

Maybe it can find others, too, if that one doesn't work for you. -Rob

\d{3}_\d{3}_\d{4}., thats the answer.,

i really appreciate., thanks a lot.

Can you guide me for this please., 2. In Ruby there is a command called ‘require’. Explain what this command means and write an example of how it is used to include a Ruby Gem in a file.