Converting Output Using RegEx

Converting Output Using RegEx

The SaveToDB add-in and DBEdit enable you to process handler output with regular expressions.

To use this feature, specify the RegEx event name and provide a set of regular expression lines in the HANDLER_CODE field of the xls.handlers table.

Here's an example that processes generated documentation before displaying it in a window:

IDTABLE_SCHEMATABLE_NAMECOLUMN_NAMEEVENT_NAMEHANDLER_SCHEMAHANDLER_NAMEHANDLER_TYPEHANDLER_CODETARGET_WORKSHEETMENU_ORDEREDIT_PARAMETERS
 docview_objectsActionsdocxl_actions_show_docPROCEDURE11
 docview_diagramsActionsdocxl_actions_show_docPROCEDURE11
 docxl_actions_show_docRegExATTRIBUTE<RegEx>

Here’s a partial sample of the RegEx content:

'( |td>|br>|<p>)(https?://[^ \r\n]*[A-Za-z_1-9\/])([ \r\n\.])'     , '$1[$2]($2)$3'

'( |td>|br>|<p>)((dbo[1-9]*|xls[1-9]*|doc|logs)\.[A-Za-z_1-9]+)'   , '$1[$2](#$2)'

Each line consists of a search pattern and a replacement value, separated by a comma.

This website is using cookies. By continuing to browse, you give us your consent to our use of cookies as explained in our Cookie Policy.