asrayousuf / ScrabbleWordRecommender

0 stars 0 forks source link

Regular Expression for * and ? #38

Closed aravindsrivats closed 9 years ago

aravindsrivats commented 9 years ago

Need a regular expression match that differentiates between any number of characters and particular number of characters.

Jayasruthi commented 9 years ago

Can you give me an example? Why do you need this feature?

aravindsrivats commented 9 years ago

If i give *_A_B, it should match for zero or more character before A and between B If I give ..A.B it should match only for 2 characters before A and one character between B

Jayasruthi commented 9 years ago

I haven't handled any characters before or after. It will just be dot between all characters. So * * * C * * A * will match CLLA, LLCLLA, LLLCLLALLL

aravindsrivats commented 9 years ago

Exactly. That is when I pass a * How are you going to handle the case I have explained above? If I pass a '.' it should exactly match one character.

Jayasruthi commented 9 years ago

If you pass A * it will change it to A dot. But if you pass A * * it will not change it to A dot dot