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. Visual Basic
  4. RegEx to parse VB.NET source (STILL NEED ANSWER PLEASE)

RegEx to parse VB.NET source (STILL NEED ANSWER PLEASE)

Scheduled Pinned Locked Moved Visual Basic
csharpregexhelp
1 Posts 1 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.
  • C Offline
    C Offline
    cnurse
    wrote on last edited by
    #1

    As an excercise in regex, I'm trying to parse various elements of VB Source, so please don't recommend I buy Programmar, or some such tool, coz I won't learn anything. I also have Expresso. OK, I am trying to capture code in a namespace, even if there are nested namespaces, so given the text of... Namespace First Enum FirstEnum MyVal End Enum Namespace Second Enum SecondEnum MyVal End Namespace End Namespace I would expect to be able to get the outer namespace as one capture and the inner namespace as a second capture. Any straightforward pasting of a regex which works, rather than splinters of things you think might work, would be really appreciated. Explanations of how they work would be a bonus, but expresso's analyzer will help me understand to some extent. Thanks guys and have a great XMAS. Nursey

    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