叽叽歪歪

    follow me on Twitter

    Editplus Regular Expression Tip

    |

    点"."

    Matches any character.(单个字符匹配)

    星"*"

    Character to the left of asterisk in the expression should match 0 or more times. For example "be*" matches "b", "be" and "bee".

     

    一个小技巧:匹配若干多个字符,可以用".*"(+)

    比如FUNC.*c.*_lot_qty匹配:  FUNCTION check_lot_qty

    Ps:Ultraedit的正则表达式更简单些,一个星就可以匹配任意多个字符

    0 comments:

    Post a Comment