Print Page | Close Window

Help with regular expressions.

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4068
Printed Date: 28 March 2026 at 4:29pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help with regular expressions.
Posted By: pnp!
Subject: Help with regular expressions.
Date Posted: 04 July 2003 at 1:54pm

I've a BoundColumn in a datagrid, mapping a "money" column in a SQL
It shows like this: 12600.0000
I just want to show the int part (ie: 12600).
I've tried giving a Data Formatting Expresion in the datagrid (with the DataFormatString= property)
I've tried with DataFormatString="/d" DataFormatString="/d{*,0}" but it gives me an error

Do someone know how can I format a regularexpression that shows me just the integer part of the decimal number?

Thanks in advance!




Replies:
Posted By: MorningZ
Date Posted: 08 July 2003 at 12:16pm

you have the slashes backwards, in regex, its "\d" not "/d"

that might be a start



-------------
Contribute to the working anarchy we fondly call the Internet



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net