public void ProcessText(String path,int index) {
		Pattern regex=Pattern.compile("(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})");
		Matcher regexMatcher;
		try {
			in=new BufferedReader(new FileReader(new File(path)));
			out=new BufferedWriter(new FileWriter(new File("hosts"),true));
			while((line=in.readLine())!=null){
				if(line.contains(STARTMARKS[index])){
					startContext=true;
				}
				if(line.contains(ENDMARKS[index]))startContext=false;
				if(startContext){
					regexMatcher=regex.matcher(line);
					if(regexMatcher.find()){
//						writeline=regexMatcher.group(0);
						writeline=line;
//						System.out.println(writeline);
						if(writeline!=null){
							writeline=writeline.replace("	", "");
							writeline=writeline.replace("&nbsp;"," "); 
							writeline=writeline.replace("<span>", "");
							writeline=writeline.replace("</span>", "");
							writeline=writeline.replace("<br />", " ");
							if(writeline.indexOf('>')>=0){
								writeline=writeline.substring(writeline.indexOf('>')+1);
							}
						}
//						System.out.println(writeline);
						out.write(writeline+"\n");
					}
				}
			}
			out.write(ENDMARKS[index]+"\n\n\n");
			out.flush();
			out.close();
			in.close();
				
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}