Sep 20, 2019
Main Program OpenBVE versi 1.6.3.13.. . buku: readbuku .
Dec 12, 2019
It took the science community more than 150 years to "discover" that the moon is, in fact, tidally locked to the Earth, and that the only major land on it is permanently facing away from us. .
FileName: FileSize:Time:System:User:EstimatedSize:Application.exe : 6.22 M : -1 - (0) : (0) : (0) : Jul 17, 2020 10:29PM .
A:
Regex can be used to match strings with spaces.
Here is an example from the link you posted in your question:
Pattern
private static final Pattern KEY_PATTERN = Pattern.compile("\S+|(?[\S-]+)");
Code
for (String filename : FileUtils.listFiles(inputFolder, new String[] {"txt" }, false))
{
StringBuilder sb = new StringBuilder();
try (BufferedReader br = new BufferedReader(new FileReader(inputFolder + "/" + filename)))
{
String line;
while ((line = br.readLine())!= null)
{
Matcher matcher = KEY_PATTERN.matcher(line);
if (matcher.matches())
{
sb.append(matcher.group("key"));
sb.append("
");
}
sb.append(line);
sb.append("
");
}
} be359ba680
Related links:
Comments