Bonjour,
j'essaie désespérément de faire une regex, mais je n'y arrive pas.
J'ai une chaine:
et dans cette chaine je voudrai retrouver "Latitude:</strong> 50.8333 <strong>", mais ma regex ne marche pas.Code:
1
2
3
4
5
6 String line ="<br /><strong>City:</strong> <em>unknown</em><br /><small><strong>Latitude:</strong> 50.8333 <strong>Longitude:</strong> 4</small><br /><strong>Host:</strong> <a "; Matcher matcher = Pattern.compile("(Latitude:</strong> (([0-9]{1,3})(\\.[0-9]{1,4})?) <strong>)").matcher(line); if (matcher.find()) { //ok }
Est ce que quelqu'un peut m'aider?