如何使用正则表达式编辑字符串 [英] How Do I Use Regex To Edit String
本文介绍了如何使用正则表达式编辑字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用正则表达式编辑一个字符串,看起来像4,000,000,我一直在环顾四周,但是找不到它,请帮助我知道我必须声明
i need to edit a string to look like 4,000,000 using regex and i have been looking around it, but can find no way on it please help i know that i have to declare
using System.Text.RegularExpressions
但是从那我不知道,我有一直在玩正则表达式,但我希望当我将值插入文本框时,它已经添加,所需的地方
but from that i have no idea , i have been playing with regex, but i want to as i insert the values into the textbox that it already adds the "," where needed
推荐答案
Google [ ^ ]让开发人员的生活更轻松。
Google[^] makes developer's life easier.
这篇关于如何使用正则表达式编辑字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文