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. REGEX start and end

REGEX start and end

Scheduled Pinned Locked Moved C#
questionregexhelptutorial
4 Posts 4 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.
  • S Offline
    S Offline
    Saamir
    wrote on last edited by
    #1

    Hi guys, I need some help please, example I have a string as follows T12322322232O, how do I parse everything between T and O using regex? Please help.

    sasa

    P S J 3 Replies Last reply
    0
    • S Saamir

      Hi guys, I need some help please, example I have a string as follows T12322322232O, how do I parse everything between T and O using regex? Please help.

      sasa

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      If you mean you want to capture "everything between T and O using regex", then something like "T(?'Data'.*)O" should work. If the regex Matches, there'll be a Group named "Data" whose Value contains the digits. If that's not what you mean, then please post more details.

      1 Reply Last reply
      0
      • S Saamir

        Hi guys, I need some help please, example I have a string as follows T12322322232O, how do I parse everything between T and O using regex? Please help.

        sasa

        S Offline
        S Offline
        Spacix One
        wrote on last edited by
        #3

        This sounds like a homework problem... look for how to check for start and end (it is on MSDN)

        1 Reply Last reply
        0
        • S Saamir

          Hi guys, I need some help please, example I have a string as follows T12322322232O, how do I parse everything between T and O using regex? Please help.

          sasa

          J Offline
          J Offline
          Joshua Lunsford
          wrote on last edited by
          #4

          T./?O

          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