首页> 外国专利> METHOD FOR IDENTIFYING HEADER BLOCK AND DATA BLOCK IN FILE

METHOD FOR IDENTIFYING HEADER BLOCK AND DATA BLOCK IN FILE

机译:识别文件中的标题块和数据块的方法

摘要

The present invention discloses a method for identifying a header block and a data block in a file. The method comprises the steps of: generating a regular expression pattern for a header block from a sample part of a file; scanning a regular expression pattern for at least one line in the file in order to identify at least one header block in the file; and determining the at least one header block from the file when the number of times the regular expression pattern is scanned exceeds a predefined number. The regular expression pattern for the header block is generated from the sample part of the file through performing the steps of: extracting the sample part from the file; scanning individual lines in the sample part in order to determine lengths of the individual lines; determining the header block based on a predefined header length; constructing the regular expression pattern for the determined header block; and storing the regular expression pattern in local memory.;COPYRIGHT KIPO 2016
机译:本发明公开了一种用于识别文件中的标题块和数据块的方法。该方法包括以下步骤:从文件的样本部分为标题块生成正则表达式模式;扫描文件中至少一行的正则表达式模式,以识别文件中的至少一个头块;当正则表达式模式被扫描的次数超过预定次数时,从文件中确定至少一个头块。通过执行以下步骤,从文件的样本部分生成标题块的正则表达式模式:从文件中提取样本部分;扫描样品部分中的单条线以确定单条线的长度;根据预定的报头长度确定报头块;为确定的标题块构造正则表达式模式;并将正则表达式模式存储在本地内存中; COPYRIGHT KIPO 2016

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号