List Info

Thread: Validation Expression




Validation Expression
user name
2006-12-29 07:43:45
Hi I am writing a validation expression for the followings

1)EPF/chp15_v3.htm#p33
or
2)EPF/chp15_v3.htm

I wrote the validation expression as

 [a-zA-Z0-9]*.(htm|html)#[a-zA-Z0-9]*$

but for this wont work for the 2nd one though it works for
the first
one. Again if i enter "" there the first one is
not working..

So plz help me in solving the problem

Regards 
Priyabrata


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Validation Expression
user name
2006-12-30 07:07:30
This does it for me :

EPF/[A-Za-z0-9_]+.(?:htm|html)[A-Za-z0-9#]*

It matches both your sample strings. Please add the start
and end line
anchors and set the RegexOption to further constrain the
input.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )