![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power: 3
![]() |
regular expression
so I have to write a reg expression for
the set of strings whose first character is a and ends in either a or ac. In the middle the strings have any combinations of b's and c's, including no b's nor c's. Now, what I came up with is {a}.{b, c}*.{a, ac} apparently, this is not right (my solution doesnt match with the answer given) Now, can you tell me what you see wrong in my solution? |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date Regular Expression | King | C# | 2 | Apr 30th, 2006 10:41 PM |
| Word Frequency Regular Expression | hoffmandirt | C# | 4 | Feb 27th, 2006 9:21 PM |
| Problem with regular expression? | wingz198 | Perl | 3 | Jan 24th, 2006 6:49 PM |
| Regular Expression | toghian | C++ | 12 | Dec 28th, 2005 11:12 PM |
| Regular Expression HELP -- thanks | paulchwd | JavaScript and Client-Side Browser Scripting | 3 | Oct 11th, 2005 5:40 PM |