You are viewing limited content. For full access, please sign in.

Question

Question

how to remove space from token value

asked on March 1, 2016

hi to all

i am using Zone OCR and get some time following value and i want to remove space.

Example : Real value R10 but getting R 10 , R1 0, R 1 0

 

 Thanks

Regards

Mazahir Naya

0 0

Replies

replied on March 1, 2016 Show version history

You want to use the following regex [^ ]+

It says "Retrieve everything, but Spaces" 

2 0
replied on March 1, 2016

Hello Mason

i try with but no result . my Current pattern sample i am using

Zone OCR capture : DXB No. S 42 <some time S4 2>

Pattern Setting : \s*[DXB|DxB]?\s*No?\.?\s*([\s\w\d]*) <First match>

 

note : also i try with trim() function but no result.

Thank you.

Regards

Mazahir

0 0
replied on March 2, 2016

Here is something I created real quick.

 

Let me know if it works.

 

D[xX]B.+(\w)[ ]?(\d)[ ]?(\d)[ ]?.+

 

0 0
replied on March 2, 2016

Or you could do this.

 

0 0
replied on March 4, 2016

hello Mason

Thanks for your kind reply .i change the zone OCR area to avoid capturing DXB No. & i started capturing from S42 01234 .

i use following pattern which remove space between Number and S42.

([a-zA-Z[\d]*)\s*\W*[a-zA-Z]*(\d{1,7})

so far result is good but i am facing one more challenge in document where my Zone OCR area there is  some documents cross line come which some time convert as a 1 ,or 7 or 2 .i am attaching my Zone area Image for your kind reference .

 

Thank You.

 

Best Regards

Mazahir Naya

0 0
replied on March 1, 2016

For the pattern, use \w and under the If Multiple Matches Exist drop-down, select All Matches (combined with no spaces).

1 0
replied on March 1, 2016

Hello jim

i try with but no result . my Current pattern sample i am using

Zone OCR capture : DXB No. S 42

Pattern Setting : \s*[DXB|DxB]?\s*No?\.?\s*([\s\w\d]*) <First match>

 

note : also i try with trim() function but no result.

Thank you.

Regards

Mazahir

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.