diff --git a/2012/hou/README.md b/2012/hou/README.md index 38b40f3af..d0d5c8da1 100644 --- a/2012/hou/README.md +++ b/2012/hou/README.md @@ -78,7 +78,7 @@ The following regular expression operators are supported: ``` For example, one can use the following expression to match a certain declaration -statement in [hou.c](hou.c): +statement in [hou.c](%%REPO_URL%%/2012/hou/hou.c): ``` "char"[ *]*[a-zA-Z_][0-9a-zA-Z_]*[ ]*((=[0-9a-zA-Z_ ]+)|(\[[0-9a-zA-Z_ ]*\]))?[ ]*(,[ *]*[a-zA-Z_][0-9a-zA-Z_]*[ ]*((=[0-9a-zA-Z_ ]+)|(\[[0-9a-zA-Z_ ]*\]))?[ ]*)*; diff --git a/2012/hou/index.html b/2012/hou/index.html index b83dcb169..1f546712b 100644 --- a/2012/hou/index.html +++ b/2012/hou/index.html @@ -194,7 +194,7 @@ in the regular expression by escaping it with [] or ""

The following regular expression operators are supported:

    () [] * + ? | ""

For example, one can use the following expression to match a certain declaration -statement in hou.c:

+statement in hou.c:

        "char"[ *]*[a-zA-Z_][0-9a-zA-Z_]*[ ]*((=[0-9a-zA-Z_ ]+)|(\[[0-9a-zA-Z_ ]*\]))?[ ]*(,[ *]*[a-zA-Z_][0-9a-zA-Z_]*[ ]*((=[0-9a-zA-Z_ ]+)|(\[[0-9a-zA-Z_ ]*\]))?[ ]*)*;

The regex engine is also algorithmically efficient. To illustrate the point, ansi.txt contains a pathological expression 1 that guarantees a