Copying partial text from another field

Issue #978 resolved
apsimpkins created an issue

Hi,

I would like to add a post function that can copy the text from an existing field (Summary field), I only want to extract the characters from the beginning of the field up to the first space. Equally I want to do the same but from the end of the field, back to the last space. The amount of characters is not a fixed amount.

Is this possible?

Regards,

Andy

Comments (4)

  1. apsimpkins reporter

    Excellent, thanks for the quick response Fidel. I want to extract the text at the front and copy it into one field. Then (presumably in another post function) I want to extract the text from the end and copy that into a different field.

    Thanks,

    Andy

  2. Fidel Castro Armario repo owner

    Hi @apsimpkins,

    For extracting the first word of summary you should use "Parse field for extracting data" with the following configuration:

    Captura de pantalla 2018-03-05 a las 12.44.27.png

    • Leading delimiter: leave it empty
    • Trailing delimiter: regular expression \n.

    In my example I selected a text custom field called Short Text to store the first word of summary.

    For extracting the last word of issue summary you should use the following configuration:

    Captura de pantalla 2018-03-05 a las 12.56.52.png

    • Leading delimiter: regular expression \s
    • Trailing delimiter: regular expression $
    • Value format: regular expression [^ ]+

    BTW, I inform you that we have a new support site. Please, use it for your future questions and support requests.

  3. Log in to comment