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. Regular Expressions
  4. i need a regular expression to match a single word starting with m(...followed by any text but not space and )containing Manager

i need a regular expression to match a single word starting with m(...followed by any text but not space and )containing Manager

Scheduled Pinned Locked Moved Regular Expressions
regex
3 Posts 3 Posters 14 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.
  • A Offline
    A Offline
    anandssunku
    wrote on last edited by
    #1

    i need to find the strings like below mTimerManager mAutolockManager but not like mv this is comment timerManager

    anand sunku

    Richard DeemingR J 2 Replies Last reply
    0
    • A anandssunku

      i need to find the strings like below mTimerManager mAutolockManager but not like mv this is comment timerManager

      anand sunku

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      And? What have you tried, and where are you stuck? "I need..." is not a question.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • A anandssunku

        i need to find the strings like below mTimerManager mAutolockManager but not like mv this is comment timerManager

        anand sunku

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        You did not define which regex you are working with. Your definition for the 'word' is anything except a space. Which is not really what 'word' generally means. But that is what I used. In perl.

        m[^ ]+

        The above will match the following (because that is the definition of 'word')

        m&extra---stuff.

        It is also limited with the following since, again with the definition of word, it is not clear what might be expected

        mFirst,mSecond

        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