Community

Replace found character string

Is there any way to replace one letter from found character string?
Found:
P0232323322
Should be found
PO232323322
I know that this should be done in Capture but I dont have access
0

Comments

5 comments

  • Avatar
    Sushi
    Aegir,

    You are correct the replacing is suppose to happen on the FlexiCapture side. FlexiLayout only finds the region. That is the only thing that is passed back to the FlexiCapture to OCR is the region or coordinates of what to capture.
    0
  • Avatar
    Muhammad
    Sorry! i just join that forum , if you still want to find a way to replace it , i can help you with that.
    0
  • Avatar
    Aegir
    Of course, Im still interested. Thx for reply.
    0
  • Avatar
    Muhammad
    As sushi mentioned about the limitation of flexi lay out studio but if you got an access to project setup station you can do something as mentioned below .

    you can write a rule script for that field

    for example in in rule settings of that field you can write something in c# as below

    if (Context.Field("FIELDNAME").Text=="P0232323322") Context.Field("FIELDNAME").Text="PO232323322";

    or

    you can replace the text using built in AutoCorrect options for that go to properties of the field > AutoCorrect options> Edit>replace text > edit and do an exact match .

    well it really depends on your requirements .



    0
  • Avatar
    DanAyo


    If the problem is something like the 'P0' / 'PO'

    You can easily deal with this in the field properties
    Right Click the field and choose Properties, then Choose the Data Type tab, then click (Edit) AutoCorrect options:, then Character Replacement.

    Put 'PO' in the Replace box and "P0' in the with box. Then choose the Where box as it best fits your needs.

    You might also look at the Replace Text option on the same tab.

    There are all sorts of things that can be easily done in the AutoCorrect Options.

    Hope this helps...
    0

Please sign in to leave a comment.