Regular Expression for ../

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ahmed

    Regular Expression for ../


    I want to form a regular expression which start with an alphabit and
    shoud not contain ../ any where. I couldn't figure out how to exclude
    ../

    Please suggest. Thank you


    *** Sent via Developersdex http://www.developersdex.com ***
  • Jesse Houwing

    #2
    Re: Regular Expression for ../

    Hello Ahmed,
    I want to form a regular expression which start with an alphabit and
    shoud not contain ../ any where. I couldn't figure out how to exclude
    ./
    >
    Please suggest. Thank you
    ^[a-z]((?!./).)*$

    --
    Jesse Houwing
    jesse.houwing at sogeti.nl


    Comment

    • Jesse Houwing

      #3
      Re: Regular Expression for ../

      Hello Jesse,
      Hello Ahmed,
      >
      >I want to form a regular expression which start with an alphabit and
      >shoud not contain ../ any where. I couldn't figure out how to exclude
      >./
      >>
      >Please suggest. Thank you
      >>
      ^[a-z]((?!./).)*$

      ohh make that:

      ^[a-z]((?!\./).)*$

      --
      Jesse Houwing
      jesse.houwing at sogeti.nl


      Comment

      • Leon Lambert

        #4
        Re: Regular Expression for ../

        I use expresso to help figure out regular expressions. It usually makes
        it fast and easy. It's also free.


        Hope this helps
        Leon Lambert

        Ahmed wrote:
        I want to form a regular expression which start with an alphabit and
        shoud not contain ../ any where. I couldn't figure out how to exclude
        ./
        >
        Please suggest. Thank you
        >
        >
        *** Sent via Developersdex http://www.developersdex.com ***

        Comment

        • Jialiang Ge [MSFT]

          #5
          Re: Regular Expression for ../

          Hello Jesse Houwing

          Thank you for the great input.

          Hello Ahmed,

          I am writing to check the status of the issue on your side. Would you mind
          letting me know the result of Jesse Houwing's suggestions? If you need
          further assistance, feel free to let me know. I will be more than happy to
          be of assistance.

          Have a great day!

          Regards,
          Jialiang Ge (jialge@online. microsoft.com, remove 'online.')
          Microsoft Online Community Support

          =============== =============== =============== ====
          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.

          This posting is provided "AS IS" with no warranties, and confers no rights.
          =============== =============== =============== ====

          Comment

          Working...