Topic
7 replies Latest Post - ‏2013-01-08T15:33:10Z by bfoyle
SystemAdmin
SystemAdmin
197 Posts
ACCEPTED ANSWER

Pinned topic Custom rule syntax: how to capture the following string?

‏2013-01-08T12:25:21Z |
Hi,

I need to capture the following strings in Content Analytics collection and to put just numbers in a facet:

"NDG: 0000"
"NDG. 0000"

I can capture string like "NDG 0000" by the following custom rule:

<mi category="$.tickets.ndg_numbers" value="${1.str}">
<w id="0" str="/nNdDgG/" />
<w id="1" str="/0-90-90-90-90-90-90-90-9$/"/>
</mi>

But I cannot capture them if there is . or :.

Any suggestion about them?
Where I can find more information/complex examples about custom rule syntax?

Thanks in advance for any help!
Updated on 2013-01-08T15:33:10Z at 2013-01-08T15:33:10Z by bfoyle
  • SystemAdmin
    SystemAdmin
    197 Posts
    ACCEPTED ANSWER

    Re: Custom rule syntax: how to capture the following string?

    ‏2013-01-08T13:04:47Z  in response to SystemAdmin
    you can create a parsing rule with ICA Studio.
    Create a custom dictionary containing "NDG", "NDG." and "NDG:". You can call it NDGPrefix.
    create a phrase rule where NDGPrefix is followed by a numeric., and then in the Annoation, you only annotate the "Numeric" Node.

    Hope this helps.
    • SystemAdmin
      SystemAdmin
      197 Posts
      ACCEPTED ANSWER

      Re: Custom rule syntax: how to capture the following string?

      ‏2013-01-08T14:03:44Z  in response to SystemAdmin
      Hi,

      and thanks for your answer!
      Yes I thought about Studio but I prefer to not use it.
      The customer has Content analytics licence (not Studio) and he wants to work/customize/improve annotation rules by himself.

      For this reason: is there any way to annotate NDG:?

      I cannot believe that it is not possible in ICa by regular expression or something like that.

      Thanks again, Antonella
    • SystemAdmin
      SystemAdmin
      197 Posts
      ACCEPTED ANSWER

      Re: Custom rule syntax: how to capture the following string?

      ‏2013-01-08T14:06:04Z  in response to SystemAdmin
      Hi,

      and thanks for your answer!
      Yes I thought about Studio but I prefer to not use it.
      The customer has Content analytics licence (not Studio) and he wants to work/customize/improve annotation rules by himself.

      For this reason: is there any way to annotate NDG:?

      I cannot believe that it is not possible in ICa by regular expression or something like that.

      Thanks again, Antonella
    • SystemAdmin
      SystemAdmin
      197 Posts
      ACCEPTED ANSWER

      Re: Custom rule syntax: how to capture the following string?

      ‏2013-01-08T14:07:12Z  in response to SystemAdmin
      Hi,

      and thanks for your answer!
      Yes I thought about Studio but I prefer to not use it.
      The customer has Content analytics licence (not Studio) and he wants to work/customize/improve annotation rules by himself.

      For this reason: is there any way to annotate NDG:?

      I cannot believe that it is not possible in ICa by regular expression or something like that.

      Thanks again, Antonella
    • SystemAdmin
      SystemAdmin
      197 Posts
      ACCEPTED ANSWER

      Re: Custom rule syntax: how to capture the following string?

      ‏2013-01-08T14:08:26Z  in response to SystemAdmin
      Hi,

      and thanks for your answer!
      Yes I thought about Studio but I prefer to not use it.
      The customer has Content analytics licence (not Studio) and he wants to work/customize/improve annotation rules by himself.

      For this reason: is there any way to annotate NDG:?

      I cannot believe that it is not possible in ICa by regular expression or something like that.

      Thanks again, Antonella
    • SystemAdmin
      SystemAdmin
      197 Posts
      ACCEPTED ANSWER

      Re: Custom rule syntax: how to capture the following string?

      ‏2013-01-08T14:08:45Z  in response to SystemAdmin
      Hi,

      and thanks for your answer!
      Yes I thought about Studio but I prefer to not use it.
      The customer has Content analytics licence (not Studio) and he wants to work/customize/improve annotation rules by himself.

      For this reason: is there any way to annotate NDG:?

      I cannot believe that it is not possible in ICa by regular expression or something like that.

      Thanks again, Antonella
      • bfoyle
        bfoyle
        60 Posts
        ACCEPTED ANSWER

        Re: Custom rule syntax: how to capture the following string?

        ‏2013-01-08T15:33:10Z  in response to SystemAdmin
        ICA Studio is licensed as part of ICA ...if they have ICA, they have the right to use ICA Studio.

        bf