Project

General

Profile

Actions

Feature #2828

open

Add Pattern Inference in NDN Regular Expression

Added by Qiuhan Ding over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Utils
Target version:
-
Start date:
05/20/2015
Due date:
% Done:

0%

Estimated time:

Description

Add Pattern Inference in NDN Regular Expression to support new trust schema.

Pattern Inference is to derive patterns of original regex pattern with additional knowledge. Basically, we pass a list of arguments to regex, the number of which will be equal to the number of back references in the original pattern. Then the regex will match its back reference with these arguments and update the regex. New pattern derived from the updated regex will get all its back references filled.

There are three possible types of arguments: name, "null" or "NA" (case insensitive for the last two). name will replace the sub group with a new pattern, "null" will remove the sub group. "NA" will leave the sub group as it is.

For example: If I have a pattern like:

<ndn><ucla>(<>)(<>*)

And I should pass a vector with two elements.
The return of vector ["/qiuhan", "/mac/temp"] would be

<ndn><ucla><qiuhan><mac><temp>

The return of vector ["/qiuhan", "NA"] would be

<ndn><ucla><qiuhan>(<>*)

The return of vector ["/qiuhan", "null"] would be

<ndn><ucla><qiuhan>


Related issues 1 (0 open1 closed)

Blocked by ndn-cxx - Task #2829: Write New Trust Schema Design SpecificationClosedYingdi Yu05/20/2015

Actions
Actions

Also available in: Atom PDF