You want to search for sale and sales. What regular expression should you use?



You want to search for sale and sales. What regular expression should you use?..

Answer / Sunder Lal

To search for words that contain either "sale" or "sales", you can use the following regular expression: `/b(sale|sales)/b` This will match any word that contains either sale or sales and ignore case sensitivity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux General Interview Questions

Where can I download linux os for free?

1 Answers  


Is bsd faster than linux?

1 Answers  


What is stack?

1 Answers  


Can mutex be used across process?

1 Answers  


Is linux a unix?

1 Answers  


How to setup password less remote login/ssh?

1 Answers  


Is it possible to install Linux RHEL5 os along with fedora14 linux os in one system ?

2 Answers   IBM,


Does arch linux have a gui?

1 Answers  


What is difference between at and cron?

1 Answers  


how do you search for a pattern and than replace it in an entire file in linux?

1 Answers   Arigo Infotech,


How can you terminate vi session?

1 Answers  


What are some common things between linux & unix?

1 Answers  


Categories