Connecting Tech Pros Worldwide Forums | Help | Site Map

Regular Expression for ../

Ahmed
Guest
 
Posts: n/a
#1: Oct 30 '08

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
Guest
 
Posts: n/a
#2: Oct 30 '08

re: Regular Expression for ../


Hello Ahmed,
Quote:
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


Jesse Houwing
Guest
 
Posts: n/a
#3: Oct 30 '08

re: Regular Expression for ../


Hello Jesse,
Quote:
Hello Ahmed,
>
Quote:
>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


Leon Lambert
Guest
 
Posts: n/a
#4: Oct 31 '08

re: Regular Expression for ../


I use expresso to help figure out regular expressions. It usually makes
it fast and easy. It's also free.
http://www.ultrapico.com/expresso.htm

Hope this helps
Leon Lambert

Ahmed wrote:
Quote:
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 ***
Jialiang Ge [MSFT]
Guest
 
Posts: n/a
#5: Nov 7 '08

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@microsoft.com.

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

Closed Thread