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. ATL / WTL / STL
  4. Regular Expression Template Archive

Regular Expression Template Archive

Scheduled Pinned Locked Moved ATL / WTL / STL
regextutorialquestion
2 Posts 2 Posters 15 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.
  • I Offline
    I Offline
    Idefix
    wrote on last edited by
    #1

    Has someone experience with greta? void example() { string sText="er.r.n.i.e"; match_results results; rpattern pat("(\\w+\\.)+"); match_results::backref_type brip = pat.match(sText, results); for(int i=0;i

    N 1 Reply Last reply
    0
    • I Idefix

      Has someone experience with greta? void example() { string sText="er.r.n.i.e"; match_results results; rpattern pat("(\\w+\\.)+"); match_results::backref_type brip = pat.match(sText, results); for(int i=0;i

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      Idefix wrote: I think the parser works but how can i get the single items? Is that possible? Try: rpattern pat("{\\w+}\\."); iterate through your string and extract the text matching the {} tag. Note that I don't know Greta, but this is what you would do with a typical Regex. Idefix wrote: Where can I find more documention and information? Have you tried: http://research.microsoft.com/projects/greta/gretauserguide.htm[^] Neville Franks, Author of ED for Windows. www.getsoft.com

      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