Search a string of characters in the OCRPageHandler object and returns them in case that they has been founded.
1 ocr.findText
<ocr.findText>
<OCRPageHandler /> !
<REGEXPstring /> !
</ocr.findText>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EOCRPageHandler | Object which includes string analysis functions through a text. | ||||
EREGEXPstring | String which can contain regular expressions. |
Returns | |
---|---|
Type | Description |
String | Returns a string of the search. |
Example
Copy
<xsql-script name='ocr_find_Text'> <body> <set name='m_ocr'> <ocr> <ocr text> </ocr> </set> <println> <ocr.findText> <m_ocr /> <string>(\bS\/ORDER\b\:)\s*?(\w+)\s*?(\d+\.\d+\.\d+)</string> </ocr.findText> </println> </body> </xsql-script>