regular expression for telecommunications Circuit ID please..
-
Monday, July 30, 2012 5:34 PM
Guys,
I am looking for regular expression for the below formats..i have been trying for few days ..see if you can help me with this..
“ww.xxxx.yyyyyy.zzzz”. The y values can be anywhere from 1-6 digits. Ww is digit. Xxxx is alphanumeric. Zzzz is alpha.
“mes-xxx-1234-main-st”; where xxx = the customer code. Max 25 Characters.
- Edited by Prakash Athikesavan Monday, July 30, 2012 5:37 PM
All Replies
-
Tuesday, July 31, 2012 10:21 AMModerator
Hi Prakash,
Welcome to the MSDN Forum.
Please try this RE:
\d*\.[\w\d]*\.\d{1,6}\.\w*
I hope this will be helpful.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed As Answer by JohnGrove Tuesday, July 31, 2012 4:44 PM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Thursday, August 09, 2012 3:14 PM
-
Tuesday, July 31, 2012 8:52 PM
thanks so much for the help.
I would need reg expression for the below as well. I will really appreciate it.
“mes-xxx-1234-main-st”; where xxx = the customer code. Max 25 Characters.
Thanks.
Prakash Athikesavan Senior Programmer
-
Wednesday, August 01, 2012 1:35 AMModerator
Hi Prakash,
So please try this RE:
\d*-([\w\d]{0,25})-\d{1,6}-\w*
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Wednesday, August 01, 2012 3:04 PM
Thanks so much for the RegEx.
It will be really helpful if you can help me with reg expression for the below one ..
ss:tt:uu:vv:ww:xx, where each letter is a hex digit.
Prakash Athikesavan Senior Programmer
-
Thursday, August 02, 2012 6:25 AMModerator
Hi Prakash,
Please try this one:
[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed As Answer by JohnGrove Monday, August 06, 2012 4:16 PM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Thursday, August 09, 2012 3:13 PM
-
Wednesday, August 15, 2012 7:33 PM
Thanks Mike for the RegEx.
I need reg Ex for the numeric range
for 1-16
1-500
101 through 4094
2-4096
I will really appreciate your help on this.
thanks,
Prakash
Prakash Athikesavan Senior Programmer
-
Thursday, August 23, 2012 5:31 PM
Hi Mike,
For my ASP.Net Web application, I have installed Oracle home client 11g. When I add reference to it, I am getting following error.If you know, please let me know about it.
Server Error in '/' Application.
Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.=== Pre-bind state information === LOG: User = COLE\Administrator LOG: DisplayName = Oracle.DataAccess (Partial) WRN: Partial binding information was supplied for an assembly: WRN: Assembly Name: Oracle.DataAccess | Domain ID: 2 WRN: A partial bind occurs when only part of the assembly display name is provided. WRN: This might result in the binder loading an incorrect assembly. WRN: It is recommended to provide a fully specified textual identity for the assembly, WRN: that consists of the simple name, version, culture, and public key token. WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. LOG: Appbase = file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2010/Projects/WebApplication1/WebApplication1/ LOG: Initial PrivatePath = C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\WebApplication1\WebApplication1\bin Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\WebApplication1\WebApplication1\web.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/159e40dd/b9d3f39f/Oracle.DataAccess.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/159e40dd/b9d3f39f/Oracle.DataAccess/Oracle.DataAccess.DLL. LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2010/Projects/WebApplication1/WebApplication1/bin/Oracle.DataAccess.DLL. ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Prakash Athikesavan Senior Programmer
-
Monday, August 27, 2012 7:23 AMModerator
Hi Prakash,
For such asp.net issue, please refer here: http://forums.asp.net/
Thank you.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Friday, December 21, 2012 4:03 PM
Hi Mike Feng,
Thanks for all your input.
I need your input on my following issue with Clipboard (System.Windows.Form.Clipboard).
When I used Clipboard.setdataobject in my local development machine, it worked well.But, when I deployed it in another server for testing people, it gives issues like
Requested Clipboard operation did not succeed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.ExternalException: Requested Clipboard operation did not succeed.
Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:[ExternalException (0x800401d0): Requested Clipboard operation did not succeed.] System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay) +1198 System.Windows.Forms.Clipboard.Clear() +144 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
Please provide me your valuable inputs on the same.
Thanks,
Prakash
Prakash Athikesavan Senior Programmer
- Edited by Prakash Athikesavan Friday, December 21, 2012 4:17 PM

