Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regex help

Status
Not open for further replies.

deejayAr

Technical User
Mar 20, 2008
126
US
I have a column in database "unittype"
it contains string value
like
"units"
"minutes"

I'm unig textbox.text = unittype

I want to use regex like
textbox.text = regex.replace(unittype)
to set unittype value from units or minutes to Unit(s) or Minute(s) for display

thanks,

 
If you want to do this in the application rather than on the database side, then you don't need regex. A standard replace would do the job just as well.

But I'd be tempted to do this when you retrieve your data from the DB rather than in your UI layer.

Hope this helps

Andy
---------------------------------
Zebracorn: 50% Zebra, 50% Unicorn = 100% Real.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top