Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain how can we define ruby regular expressions?



Explain how can we define ruby regular expressions?..

Answer / Mukesh Chaurasia

Ruby supports regular expressions (regex) to match patterns in strings. You can define regular expressions using forward slashes: `/pattern/`. For example, to match all email addresses, you could use the following regex:

```ruby
email_regex = /A[w+-.]+@[a-zd-]+(.[a-zd-]+)*.w{2,4}Z/i
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Tell me the role of modules and mixins in ruby?

0 Answers  


Explain do while loop in ruby.

1 Answers  


What is mvc? And how it works?

1 Answers  


What are ruby blocks.

1 Answers  


what is the difference between a gem and a plugin in Ruby?

1 Answers  


What are the key features of ruby?

1 Answers  


Explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


Explain about ruby code blocks?

1 Answers  


In Ruby, it explains about the defined operator?

1 Answers  


How would you create getter and setter methods in ruby?

1 Answers  


Write the command to get installed Ruby version in your system?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


Categories