Microsoft
Software
Hardware
Network
Question : Error in Regex expression...
What's wrong with the one line of code below? The field contains a number, possibly followed by non-numeric characters. I am trying to eliminate everything except the first numeric characters.
Visual Studio IDE says I have "invalid arguments". What am I doing wrong?
1:
NbrOfPages = Regex.Replace(NbrOfPages,@"^\d+");
Answer : Error in Regex expression...
yes it should do but what you are trying to exactly do with your regex?
are you trying to remove everything from the string except the digits?
if so then try this:
NbrOfPages = Regex.Replace(NbrOfPages, @"[^\d]", "");
Random Solutions
BI vs regular report
Changing font of one datamember value in a dropdown listbox
Windows XP Taskbar won't auto-hide
Best route to split VMDK
SCCM Scan agent fails with Scan Failed for ToolUniqueID with error 0x80070005
How send an array by url with php???????
Anyone have a write-up of how to use BESR 2010 and Bitlocker together?
Browser redirecting to various sites but HijackThis and Malwarebytes scans seem clean
OWA for Exchange 2003
Delphi 6 not recompiling .pas files