捕获值并将其粘贴到适当的位置 [英] Capture the value and Paste it at the appropriate location

查看:73
本文介绍了捕获值并将其粘贴到适当的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以lsec开头的行具有突出显示的值,需要将其捕获并粘贴到具有lsbsec的行的突出显示的部分( 00 )中,直到下一个lsec开始.


当下一个lsec开始时,程序必须捕获该特定行中突出显示的部分并将其粘贴到适当的位置(lsbsec行中突出显示的部分( 00 ))

lsec prefix ="Article''d =" 3''uid ='VAT1011_ A03

lsbsec d ="1''loc =" VAT1011_ 00 _01''生产的商品
lsbsec d ="2''loc =" VAT1011_ 00 _02''使用的商品
lsbsec d =''3.''loc ="VAT1011_ 00 _03''业务实体
lsbsec d ="4''loc =" VAT1011_ 00 _04''托运货物

lsec prefix ="Article''d =" 4''uid ='VAT1011_ A04

lsbsec d ="1''loc =" VAT1011_ 00 _01''生产的商品
lsbsec d ="2''loc =" VAT1011_ 00 _02''使用的商品
lsbsec d =''3.''loc ="VAT1011_ 00 _03''业务实体
lsbsec d ="4''loc =" VAT1011_ 00 _04''托运货物

我的工作将在300-3000页中包含此类信息,并且必须手动完成.

我正在寻找具有C#编程的Windows窗体应用程序,我们可以在其中使用循环程序之一.

lsec行中的 UID 是唯一的,我认为它可以用作循环引用.

Line which starts with lsec has a value highlighted, it needs to be captured and pasted in the highlighted parts(00) of lines with lsbsec till the next lsec starts.


When next lsec starts program has to capture highlighted part from that particular line and paste it in the appropriate location(highlighted parts(00) in lsbsec lines)

lsec prefix=''Article'' d=''3'' uid=‘VAT1011_A03

lsbsec d=''1.'' loc=''VAT1011_00_01'' Goods produced
lsbsec d=''2.'' loc=''VAT1011_00_02'' Goods used
lsbsec d=''3.'' loc=''VAT1011_00_03'' Business entity
lsbsec d=''4.'' loc=''VAT1011_00_04'' Consigns goods

lsec prefix=''Article'' d=''4'' uid=‘VAT1011_A04

lsbsec d=''1.'' loc=''VAT1011_00_01'' Goods produced
lsbsec d=''2.'' loc=''VAT1011_00_02'' Goods used
lsbsec d=''3.'' loc=''VAT1011_00_03'' Business entity
lsbsec d=''4.'' loc=''VAT1011_00_04'' Consigns goods

My work will have this kind of information in 300-3000 pages, and it has to be done manually.

I am looking for a windows form application with C# programming where we can use one of the loop programs.

UID in lsec line is unique and i think it can be used as ref in loop.

推荐答案

您最好的选择是使用正则表达式找到所需的数据以及要替换的位置.
Your best bet is to use regex to find both the data you want, and the place you want to replace it.


这篇关于捕获值并将其粘贴到适当的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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