My regular expression skiping one data How can I fix it [modified]
-
This question is not related to C# but I am using it in C# and there is no message board for Regular Expression there for I am posting my question, and I hope some one will solve my problem. I have this regular expression "(ABC.\d.)(?.*?)*(ABC.\d.)" and the following data on which I am applying it. ..... DATA To grab from Regular expression ABC.1. Recreation. As of June 30, 2007, the balances provided in the following citations shall revert to the fund ABC. 2. Recreation. As of June 30, 2007, the balances provided in the following citations shall revert to the fund ABC. 3. Recreation. As of June 30, 2007, the balances provided in the following citations shall revert to the fund ABC. 4. Recreation. As of June 30, 2007, the balances provided in the following citations shall revert to the fund But unfortunately it grabs only ABC.1,ABC.3,ABC.5,ABC.7 and so on it means this regular expression is skipping one step. Is there any one who can tell me how can I correct this problem. That it should not skip any sequence where it got ABC.\d. it should grab data until it found next ABC.\d. Thanks in advance :rose:
modified on Wednesday, February 18, 2009 1:40 AM