Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. One Regular Expression

One Regular Expression

Scheduled Pinned Locked Moved C#
comregexhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fired Fish Gmail
    wrote on last edited by
    #1

    There are some string in the txt file. Such as, this.textbox1.Name = "textbox1"; this.label11.Name = "label1"; I need one Regular Expression to search the similar string and output the string "this.logCount.SetLog(this.textbox1, "textbox1");" in the next line. Can anyone help me? Thks

    fish.fired at gmail.com www.firedfish.com Skype://fish.fired.gmail

    L 1 Reply Last reply
    0
    • F Fired Fish Gmail

      There are some string in the txt file. Such as, this.textbox1.Name = "textbox1"; this.label11.Name = "label1"; I need one Regular Expression to search the similar string and output the string "this.logCount.SetLog(this.textbox1, "textbox1");" in the next line. Can anyone help me? Thks

      fish.fired at gmail.com www.firedfish.com Skype://fish.fired.gmail

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This one will work. You may need to adjust it for your needs: ([^\.]+\.[^\.]+)\.Name\s*=\s*"([^"]+)"; regards

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups