how can we define Ruby regular expressions?



how can we define Ruby regular expressions?..

Answer / Alok Shukla

Ruby supports regular expressions (regex) using the /regex/ pattern. For example: /d+/ matches one or more digits, and /^[a-z]/ matches any lowercase alphabet at the start of a string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

What are filters? and how many types of filters are there in ruby

2 Answers   Baidu, TCS,


How is calling super() different from the super call?

1 Answers  


Explain rails caching levels.

1 Answers  


Explain testing in rails.

1 Answers  


what is the difference between destroy and delete?

1 Answers  


how can you declare a block in Ruby?

1 Answers  


what are the limits of Ruby on Rails?

1 Answers  


what are the differences between rails 2.x and rails 3?

1 Answers  


what is the difference between the Observers and Callbacks in Ruby on Rails?

1 Answers  


Explain me what is the role of rails controller?

1 Answers  


What role does garbage collection play?

1 Answers  


Tell me what is rails active record in ruby on rails?

1 Answers  


Categories