I am trying to get a number from a plaintext with the staring sign of "Nho xanh không hạt" and ending sign of "đ" automatically with different method but it doesn't work. In detail, I want to get the number "99.500" from the first text and "275,000" from the second text as:
textin = "Nho xanh không hạt"
url2a = "https://www.bachhoaxanh.com"
url2b = "https://nongsandungha.com"
result2a =
WebSearch[textin, "Snippets", "Site" -> url2a, Method -> "Google"]
result2b =
WebSearch[textin, "Snippets", "Site" -> url2b, Method -> "Google"]
StringCases[result2a, textin ~~ _ ~~ "đ"]
StringCases[result2b, textin ~~ _ ~~ "đ"]
TextCases[result2a, "CurrencyAmount" -> "Interpretation"]
TextCases[result2b, "CurrencyAmount" -> "Interpretation"]
StringCases[[result2a,
textin ~~ _ ~~ StringEndsQ[#, "đ"] &], DigitCharacter]
StringCases[[result2b,
textin ~~ _ ~~ StringEndsQ[#, "đ"] &], DigitCharacter]
Could you please suggest me how to obtain the above number? Thank you in advance.
result2a // StringCases[(DigitCharacter | ".") .. ~~ "₫"] // DeleteCases[{}]
. $\endgroup$