We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9483ccb commit 4b65f9fCopy full SHA for 4b65f9f
nicedoc/regex_utils.py
@@ -12,3 +12,18 @@
12
13
# Given a python file, extracts all the camelcased variable/methods/functions.
14
EXTRACT_CAMEL = r"(^(?!\s*print.*).*)((\b[a-z]+)(([A-Z]+[a-z]+)+?)\b)"
15
+
16
+# Splits the readme contents based on the API section.
17
+# This assumes that API is a <h2> header, i.e ## API, and is followed by a <h3> Todo (### Todo).
18
+# Parts Captured Group
19
+# Everything that
20
+# comes before the 1
21
+# API section
22
+#
23
+# API section along
24
+# with its contents 2
25
26
27
+# comes after the 3
28
29
+SPLIT_README_BY_API = r"^(?<![.\n])(.*\s*)*?(## API(.*\s*)*?)(###\sTodo(.*\s*)*)"
0 commit comments