Why can't Regular Expressions use keywords instead of characters?

后端 未结 14 3216
甜味超标
甜味超标 2021-02-20 06:46

Okay, I barely understand RegEx basics, but why couldn\'t they design it to use keywords (like SQL) instead of some cryptic wildcard characters and symbols?

Is it for pe

14条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 07:15

    You really want this?

    Pattern findGamesPattern = Pattern.With.Literal(@"");
    

    Ok, but it's your funeral, man.

    Download the library that does this here:
    http://flimflan.com/blog/ReadableRegularExpressions.aspx

提交回复
热议问题