Project

General

Profile

Feature #2828

Updated by Qiuhan Ding over 9 years ago

Add Pattern Inference in NDN Regular Expression to support new schema 
 Pattern Inference is to derive patterns of original regex pattern with additional knowledge. Basically, we pass a list of names 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 names and update the regex. New pattern derived from the updated regex will get all its back references filled.  

 For example: If originally I have a pattern like:  

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

 I should pass a vector with one element, such as Name("/qiuhan") and the return would be '<>*'.

Back