Regular expressions (regex)


7magudiar

RegexKerboodle1 RegexKerboodle2

Page 58 Questions

1a.  A valid string in L will consist of one more of the letters A or C followed by 2 B’s

1b.  ABB,CBB

2. (a|c)(a|c)*bb

3.

a.((0|1)*(0|1)*)*

(0|1)*     <— simplified

b.1+

c.10*

d.(110|001)(0|1)*

e. .+0+

f. (11).*(11)

4. (x*y*z*)

5. b,c,d

6. b,c

7. a,c,d

8. a,d

9. (www.).+(co.uk)$

10.  li(cenc|cens|senc|cens)e$

View original post

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s