I'm looking for a way to match the city Lens in a variety of texts. It has to match " Lens ", " Lens,", " Lens." and "Lens'"
Does anyone know the best way of doing this with a java/perl regular expression?
Is this any good?
String j="Lens";
String pattern = " "+j+" | "+j+",| "+j+"\\.|"+j+"'";
And to find any word with a fullstop following does it have to have the fullstop like this \\. ?
Does anyone know the best way of doing this with a java/perl regular expression?
Is this any good?
String j="Lens";
String pattern = " "+j+" | "+j+",| "+j+"\\.|"+j+"'";
And to find any word with a fullstop following does it have to have the fullstop like this \\. ?
Comment