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
Java Applet Client - Security Exception
coins - why only side is shown
Windows could not load the installer for DiskDrive. Contact your hardware vendor for assistance.
Server 2008 R2 DC File Permissions
Calendar Control in Excel 2003 VBA
Can I define a document root in html for all the anchors on a page?
CKEditor: How to update textarea using javascript?
Whats wrong with my css?
Private WAN
Spread sheet formula to reference entire row/column, or at least the number of rows/columns available