解析脚本跳过某些数据 [英] Parse script skipping certain data

查看:83
本文介绍了解析脚本跳过某些数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于我为解析数据文件编写的代码,我有一个问题


我的代码看起来像这样

I have one question regarding a code I wrote to parse a data file

My code looks like this

展开 | 选择 | Wrap | 行号

推荐答案

可能是一个复制和粘贴问题,但在正则表达式中,O和R之间有一个空格:


| E_FO RMULA |


如果空间确实存在,请将其删除。
might be a copy and paste problem, but in the regexp there is a space between O and R:

|E_FO RMULA|


if the space is really there, remove it.


itn''ta复制和粘贴问题,字母之间没有空格。


我尝试用E_HASHY替换E_FORMULA,它也不会在E_HASHY之后打印出内容。


如果我删除E_SMILES,我无法打印出E_FORMULA,但不知何故,当我重新添加E_SMILES时,它不会打印出E_FORMULA。
it isn''t a copy and paste problem, there is no space in between the letters.

I tried replacing E_FORMULA with E_HASHY, it doesnt print out the contents after E_HASHY too.

If I remove E_SMILES, I cant print out E_FORMULA, but somehow when I add E_SMILES back in, it doesnt print out E_FORMULA.


If我稍后有机会查看你的代码。
If I get a chance later I will look over your code.


这篇关于解析脚本跳过某些数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆