Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. RegExp issue (cap)

RegExp issue (cap)

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k 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.
  • V Offline
    V Offline
    vtestv
    wrote on last edited by
    #1

    Hi,
    I have this expression and I've been trying to get different parts from it using cap.

    Alib-1.1-1.h234 [9: alic = 1.1-1]

    I was able to get:
    cap(1) = 1.1-1
    cap(2) = h234
    cap(3) = I'm trying to get the character 9.

    I don't have acces to my code right now, so I will update the topic soon with the regexp I use so you could tell me where I'm wrong, but in the meanwhile, if someone has an idea how to get the character 9, it would be very appreciated.

    Best regards!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sidewinder
      wrote on last edited by
      #2

      Hi,

      try that one: @\d(?=: alic)@
      if 9 is not necessary a digit change \d to . (dot) for example. If alic may be variable try to look ahead for colon only.

      "Never memorize what you can look up in books."
      Albert Einstein

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved