I have a text cisco configuration. The hostname line I should match is "125-hostname billdevice". I am using below pattern but not matching true.
Pattern ciscohostname = Pattern.compile("^[0-9999999]-hostname");
Matcher matcherx = ciscohostname.matcher(BlockIndexList.get(k).toString());
How can I match this line.
Aucun commentaire:
Enregistrer un commentaire