I need some help with regex.
I have a pattern AB.* , this pattern should match for strings like AB.CD AB.CDX (AB.whatever).and so on..But it should NOT match strings like AB,AB.CD.CD ,AB.CD. AB.CD.CD that is ,if it encounters a second dot in the string. whats the regex for this?
I have a pattern AB.** , this pattern should match strings like AB,AB.CD.CD, AB.CD. AB.CD.CD but NOT strings like AB.CD ,AB.CDX, AB.whatever Whats the regex for this?
Thanks a lot.