编码问题

http://os.51cto.com/art/201503/467929.htm

http://www.cnblogs.com/skynet/archive/2011/05/03/2035105.html

 

 

 

var source = txt1.Text;
//尊敬的客户,您预定的{SDate},{StartCity}{ST}-{EndCity}{ET}的{Carrier}{FlightNo}出票成功,{STime}起飞,{ATime}到达。旅客{PsgInfo},建议提前两小时到达机场办理值机,祝您旅途愉快!

Regex regex = new Regex("\\{(.)*\\}", RegexOptions.IgnoreCase);
var newSource = regex.Replace(source, "MM");

posted @ 2015-08-07 17:44  谷樵  阅读(112)  评论(0编辑  收藏  举报