I need to find 5 sequence of alphabets has exists in a given string using regular expression. Sequence which should check in any of the form like ABCDE, BCDEF, DEFGH, EFGHI,......,PQRST,...,VWZYZ. Eg. 1) ABCDECODEPROJECT - Match (because "ABCDE" has exists in the string) 2) TESTSTRING - Not Match (because No 5 sequence of alphabets) 3) SAMPLEQRSTUEND - Match (because "QRSTU" has exists in the string) 4) WEBSITELMNOPEND - Match (because "LMNOP" has exists in the string) 5) QUESTIONANSWER - Not Match (because No 5 sequence of alphabets) Can you help me on build regular expression to check all possible combination in alphabets?
A
arisaravanan
@arisaravanan
Posts
-
Find Sequence of alphabets in the string -
Retain value in HttpModuleI've written custom httpmodule and it's being called up for every request. I want to store the value on my first request and this value needs to be retrieved for subsequent request. Is this possible in HttpModule? I know HttpContext.Current.Items preserve the value only for single request and we cannot use Session in our project as per our requirements. DO we have any other option apart from session\HttpContext.Current.Items for storing values in HttpModule?