# Re: \[RFC v4\] scripts: kernel-doc: reduce repeated regex expressions into variables

- From: Jonathan Corbet \<corbet@lwn.net\>
- Date: 2021-05-17 17:49:12 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/05/1381047
- Thread: https://ratatoskr.run/linux-doc/2021/04/6347864/t.md

```text
Aditya Srivastava [ref] writes:

> There are some regex expressions in the kernel-doc script, which are used
> repeatedly in the script.
>
> Reduce such expressions into variables, which can be used everywhere.
>
> A quick manual check found that no errors and warnings were added/removed
> in this process.
>
> Suggested-by: Jonathan Corbet <corbet@lwn.net>
> Signed-off-by: Aditya Srivastava <redacted>
> ---
> Changes in v4:
> - Fix htmldocs warning at function parsing, involving repeated $type2 identifiers capture
> - Re-tested against all files in kernel tree

Applied, thanks for stickint with this.

jon
```
