Java Regular Expression for double spaces
807605Jul 11 2007 — edited Jul 11 2007I am using ([\\s\\s]+) this regex for finding double spaces but if in single segment (Text Line) there exists two or more double spaces then it is finding only one from it .
Matcher m = Pattern.compile( regexp ).matcher(Segment );
while(m.find)
{
p.println(" ERROR :: Punctuation (Double Dot ) Error");
}
Suggets solution
Thanks
amit