Library/Technical Support/Janova 101

How to use the Regex (Regular Expression) feature

Jackson Ridenour
posted this on November 30, 2010 10:15

Synopsis:

This guide explains how to use the Regular Expression feature in Janova.

Applicable to:

Creating wildcard Location Strings and defining Elements in a Table.

Prerequisite:

None.

How to:

Regular Expression is a syntax that provides the user with flexible means for matching strings of text. The Janova application uses the syntax '.*' for the regular expression. While Regular Expression is a shortcut for defining elements and a requirement for all Table elements, full ID's should be used whenever possible.

  1. Determine the Element Type, Location Method and the Location String by inspecting the element using Firebug.  For more information on Firebug and inspecting elements please see our How-to here.
  2. Input the original Location String and then modify the string to the keyword(s) to be used with the Regular Expression.
     
    The original Location String syntax.
    REGEX_FULL.png
     
    The modified Location String ID with the keyword 'Search_link'.
    REGEX_MODIFIED.png

  3. Add the Regular Expression syntax to the Location String using the '.*' method.
     
    REGEX_1.png

  4. Check the Regular Expresion, 'regex', checkbox in the right hand corner.
     
    REGEX_Complete.png

  5. Remember that all elements within a Table need to be defined using the Regular Expression except for the Table ID which needs to use the full Location String.
     
    Table_REGEX.png

 
Topic is closed for comments