1. Engineering
  2. Computer Science
  3. write a regular expression that matches all of these strings...

Question: write a regular expression that matches all of these strings...

Question details

Write a regular expression that matches all of these strings:

rby  
rb
rbby
rbb

but does not match any of the following:

ruby
rbyry
rrby
bby

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution