Community

Find string of particular format

Hi,

I want to find string with particular format in flexicapture. The format is -HFC, -RET, -ERX, -KGY etc. I need to find all such string starting with - and 3 letters that may be in uppercase or lowercase. Those letters can be anything after "-". Above are examples.

Thanks in advance.

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Vladimir Dimitrijević

    Hi,

    Easiest is to use regular expression of course.

    Best regards,
    Vladimir

    0
  • Avatar
    Sara

    Thanks Vladimir.

    The string format is for eg. 0123-87ghFD5929dsf-HEY, 945-04309SFwr-RET. If i set regular expression for this as all "alphabet" characters,it just gives an error that its not satisfying condition. I just want -HEY and -RET from it to find and place it in another field. How to do this?

    0
  • Avatar
    Permanently deleted user

    Hello,

    If you are using flexible sections in your FC project, and you can find the whole field that will end by -(3 letters group), then you can restrict the search area of some next element by the Rect of this whole field and look for 3-symbols Character String element, nearest to the pageRight and containing only letters (set up by alphabet). Or you can copy the 3 last symbols of this field into another field on the level of Document Definition by Rules script.
    0

Please sign in to leave a comment.