AnsiString directoryPath =ExtractFilePath(filePath);ShowMessage(directoryPath); } 复制代码 In the above example, the ExtractFilePath function is used to extract the directory path “C:\Program Files\MyApp\data\” from the file path “C:\Program Files\MyApp\data\file.txt”. The extracted direct...
musskopf Builder 02-18-2015 03:53 PM Hello, assuming you have a "white space" after the filename, you could try: index="devices-syslog-ng" | rex field=_raw "request=.+\/(?P<filename>.+)\s" I've used the named extraction, so it will create a field named "filen...