The regular expression : Customer rating (?<rating>\d.\d)/5.0 The java string : "Customer rating (?<rating>\\d.\\d)/5.0"
private static final Pattern ratingPattern = Pattern.compile("Customer rating (?<rating>\\d.\\d)/5.0"); ... m = Retriever.ratingPattern.matcher(X); if (m.matches()) { ... }
static Regex rx = new Regex(@"Customer rating (?<rating>\\d.\\d)/5.0"); ... MatchCollection matches = rx.Matches(X); if (matches.Count > 0) { ... }
string pattern = @"Customer rating (\d.\d)/5.0"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)