المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Help in matching inputted string to a regex pattern



C# Programming
08-05-2009, 04:11 PM
Can someone help me on how to match an entered string to a regex pattern?

I'm creating a program that would parse a for loop statement and check if the entered for loop statement is correct or not. So far I've been able to split that statement and pass it into an array. I then pass it again to a string variable after i put the splitted statement into that array. My only problem is how to check if the entered for loop statement is correct? I've been trying lots of pattern matching codes from the web but none of them have worked so far. The deadline will be next week but until now there hasn't been any progress.

My pattern isn't done yet too because i can't make a pattern that would match the >=,