---
title: "Regular expression for space char"  
description: "Regular expression for space char"  
author: "Amit Singh"  
published: 2011-03-14  
updated: 2011-03-14  
canonical: https://www.mindstick.com/forum/192/regular-expression-for-space-char  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Regular expression for space char

[problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) in creating [validation](https://www.mindstick.com/articles/12234/validation-using-data-annotation-using-entity-framework) [expression](https://www.mindstick.com/articles/1861/sqlite-expressions) for [space](https://www.mindstick.com/articles/12954/do-your-electrical-repair-in-your-own-space) [character](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) in case of [numeric data](https://www.mindstick.com/interview/23094/what-is-the-common-numeric-data-types-in-mysql) [entry](https://www.mindstick.com/interview/531/how-to-delete-an-array-entry-using-javascript) in [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) box

## Replies

### Reply by Anonymous User

Write down following expression on ValidationExpression property of RegularExpressionValidator control ValidationExpression="^([\s]*[0-9]+[\s]*)" asp:RegularExpressionValidator>

This might be fullfill your requirement.


---

Original Source: https://www.mindstick.com/forum/192/regular-expression-for-space-char

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
