Lines Matching +full:re +full:-
2 # SPDX-License-Identifier: GPL-2.0
8 Those help caching regular expressions and do matching for kernel-doc.
11 import re
21 It calls re.compile for a given pattern. It also allows adding
34 self.regex = re.compile(string, flags=flags)
64 Handles a re.match storing its results
72 Handles a re.search storing its results
80 Alias to re.findall
87 Alias to re.split
94 Alias to re.sub
110 even harder on Python with its normal re module, as there are several
124 … https://stackoverflow.com/questions/5454322/python-how-to-match-nested-parentheses-with-regex
126 Although I re-implemented it to make it more generic and match 3 types
139 # except that the content inside the match group is delimiter-aligned.
160 RE_DELIM = re.compile(r'[\{\}\[\]\(\)]')
167 … https://stackoverflow.com/questions/5454322/python-how-to-match-nested-parentheses-with-regex
177 This should be OK for kernel-doc parser, as unaligned delimiters
188 d = line[offset - 1]
207 if stack and d == stack[-1]:
216 This is similar to re.search:
228 This is similar to re.sub:
233 if r'\1' is used, it works just like re: it places there the
248 value = line[end:pos - 1]