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

Question

Question

Regular Expression Question

asked on February 15, 2016

How do I create a regular expression in a zone OCR area that contains 'Number 1971' and convert it to '1971'?

Thanks Pete

0 0

Answer

APPROVED ANSWER
replied on February 15, 2016

just to return de 1971 after a word Number you need to put what you want between (Value)

 

do this as pattern matching

Number\s(\d\d\d\d)

or if it could have more than 1 space between the word Number and the value you want to grab

Number\s+(\d\d\d\d)

0 0

Replies

replied on February 15, 2016

Thanks Rene!  It worked.  

1 0
replied on February 24, 2016

Number\s*(\d{4})

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

Sign in to reply to this post.