[ 
https://issues.apache.org/jira/browse/CONNECTORS-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574547#comment-14574547
 ] 

Karl Wright edited comment on CONNECTORS-1209 at 6/5/15 2:23 PM:
-----------------------------------------------------------------

Right now we specify fields like this:

${fieldname}

Fields extracted by regexp require:
- a field name
- a regexp
- an optional group specifier (assumes 0 if not specified?)

So what should the syntax be?

${fieldname|regexp} or ${fieldname|regexp|groupspec}

The pipe separator may be problematic in some cases, so we may also want to be 
able to escape characters in the field name and regexp, e.g.:

${field\|name\|with\|pipe|reg\|exp\|with\|pipe}





was (Author: [email protected]):
Right now we specify fields like this:

$${fieldname}

Fields extracted by regexp require:
- a field name
- a regexp
- an optional group specifier (assumes 0 if not specified?)

So what should the syntax be?

$${fieldname|regexp} or $${fieldname|regexp|groupspec}

The pipe separator may be problematic in some cases, so we may also want to be 
able to escape characters in the field name and regexp, e.g.:

$${field\|name\|with\|pipe|reg\|exp\|with\|pipe}




> Add regular expression extraction to Metadata Transformer
> ---------------------------------------------------------
>
>                 Key: CONNECTORS-1209
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1209
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Metadata adjuster transformer
>    Affects Versions: ManifoldCF 1.10, ManifoldCF 2.2
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.10, ManifoldCF 2.2
>
>
> The Metadata Adjuster allows you to construct expressions consisting of text 
> plus field values, but it doesn't allow you to use regular expressions to 
> cull parts out of those field values.  It would be helpful to be able to do 
> that in some cases.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to