字符串的正则表达式 [英] regex expression for the string

查看:102
本文介绍了字符串的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除等于签名后的单词。我尝试了许多正则表达式,但实际上并不是根据要求。请帮助我。



例如:e = abc



现在,在等于之后移除abc的正则表达式是什么。



提前预定

i want to remove the word after the equals to sign . i tried many regex but its actually not according to the requirement.Please help me out .

for ex : e =abc

now, what would be the regex for removing the abc after equals to .

thanx in advance

推荐答案

这样做的简单正则表达式是:



@(?< ==)\ S +
Simple regex for doing this is :

@"(?<==)\S+"

这篇关于字符串的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆