zoukankan      html  css  js  c++  java
  • Editplus反转赋值的正则表达式

    在编辑/显示页面会经常用到的。

    随便记一下了。


    //[ |\t]*([^ ]*)[ ]*=[ ]*([^;]*)
    //\2 = \1
            
    this.tbName.Text = vendor.Name;
    this.ddlType.SelectedValue = vendor.Type.Id.ToString();
    this.TestA.Text = vendor.TestA;
    this.TestB.Text = vendor.TestB;
    this.TestC.Text = vendor.TestC;
    this.TestD.Text = vendor.TestD;
    this.TestE.Text = vendor.TestE;
    this.TestF.Text = vendor.TestF;
    this.TestG.Text = vendor.TestG;
    this.TestH.Text = vendor.TestH;
    this.TestI.Text = vendor.TestI;
    this.TestJ.Text = vendor.TestJ;


    vendor.Name 
    = this.tbName.Text;
    vendor.Type.Id.ToString() 
    = this.ddlType.SelectedValue;
    vendor.TestA 
    = this.TestA.Text;
    vendor.TestB 
    = this.TestB.Text;
    vendor.TestC 
    = this.TestC.Text;
    vendor.TestD 
    = this.TestD.Text;
    vendor.TestE 
    = this.TestE.Text;
    vendor.TestF 
    = this.TestF.Text;
    vendor.TestG 
    = this.TestG.Text;
    vendor.TestH 
    = this.TestH.Text;
    vendor.TestI 
    = this.TestI.Text;
    vendor.TestJ 
    = this.TestJ.Text;
  • 相关阅读:
    hadoop_并行写操作思路_2
    hadoop_并行写操作思路
    Hadoop_Block的几种状态_DataNode
    KMP算法_读书笔记
    德才论
    换个格式输出整数
    继续(3n+1)猜想
    害死人不偿命的(3n+1)猜想
    c# number求和的三种方式
    c# 中的协变和逆变
  • 原文地址:https://www.cnblogs.com/cxd4321/p/1372904.html
Copyright © 2011-2022 走看看