Project

General

Profile

Actions

Feature #2834

open

Make regex more strict

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

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

0%

Estimated time:

Description

This change is mainly for key generation. Since we cannot infer pattern and derive name from ambiguous pattern. And also because we want to simplify the regular expression. Some features are not essential.

Features that have been changed:

  1. do not allow repetition for sub groups. This is to avoid uncertainty in pattern.

    For example: We do not allow <ndn>(<>)* or <ndn>(<>*)*

  2. remove '^' and '$' in pattern expression. Every pattern needs to be complete.

    For example: previous pattern ^<ndn><edu> needs to change to <ndn><edu><>* if it has more components after <edu>

  3. do not allow sub groups inside the component matcher. This is to simplify the regular expression.

    For example: previous pattern <(.*).(.*)> is not allowed.

Actions

Also available in: Atom PDF