Match regex from right to left?

后端 未结 6 455
心在旅途
心在旅途 2020-12-11 15:27

Is there any way of matching a regex from right to left? What Im looking for is a regex that gets

MODULE WAS INSERTED              EVENT
LOST SIGNAL ON E1/T         


        
6条回答
  •  被撕碎了的回忆
    2020-12-11 16:02

    In .NET you could use the RightToLeft option :

    Regex RE = new Regex(Pattern, RegexOptions.RightToLeft);
    Match theMatch = RE.Match(Source);
    

提交回复
热议问题