regex - Match lines with possible preceding whitespaces -
in emacs, want use regex match lines such as
list of symbols list of symbols list of symbols and not match lines begin digit or ( (with 0 or more preceding white spaces) such as
1. arithmetic , algebra 1. arithmetic , algebra (a) powers (a) powers but either ^ *[^[:digit:](] or ^[[:space:]]*[^[:digit:](] can match
1. arithmetic , algebra (a) powers where there space @ beginning of each line.
i wonder wrong? thanks.
you can reduce matching lines don't start digit
or open parenthesis.
^[^[:digit:](]
Comments
Post a Comment