Can u help me in simple regular expression that will match the string
‘123_456_7890’ but not ‘123_456_789’.
On Jun 4, 1:28 pm, Srinivas G. [email protected] wrote:
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
On 04 Jun 2010, at 14:28, Srinivas G. wrote:
Can u help me in simple regular expression that will match the string
‘123_456_7890’ but not ‘123_456_789’.
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
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
On Jun 4, 2010, at 4:40 PM, chewmanfoo wrote:
\d{3}_
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
.
\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.
ENTER http://rubular.com/
I Need regular expression that will match the string ‘123_456_7890’
not ‘123_456_789’