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

What is a symbol in ruby?

1 Answers  


Explain ruby data types.

1 Answers  


Explain ruby strings.

1 Answers  


Explain about garbage collection feature of ruby?

1 Answers  


What is the difference between calling super and calling super()?

1 Answers  


Do you know what is the defined operator?

1 Answers  


Who is the developer of Ruby?

1 Answers  


Explain how Symbol is different from variables?

1 Answers  


Explain the use of retry statement in ruby?

1 Answers  


what is the role of sub-directory app/controllers and app/helpers?

1 Answers  


Tell me an array [1,2,34,5,6,7,8,9], product it using a method?

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


Categories