Use > Modeling > Reference Information > Regular Expression Examples > Examples of Regular Expressions

Examples of Regular Expressions

  • Enter a regular expression to define an IP address (aa.yy.zz.mm):

    To: In the First Field Enter: In the Second Field Enter:
    Create label by aa (.*)([.].*[.].*[.].*) 1
    Create label by yy (.*[.])(.*)([.].*[.].*) 2
    Create label by zz (.*[.].*[.])(.*)([.].*) 2
    Create label by mm (.*[.].*[.].*[.])(.*) 2
  • Enter a regular expression to create the label by the first or last letters of the selected attribute:

    To: In the First Field Enter: In the Second Field Enter:
    Create label by the first letter (.)(.*) 1
    Create label by the last letter (.*)(.) 2
    Create label by the first two letters (..)(.*) 1
    Create label by the last two letters (.*)(..) 2

Related Topics Link IconRelated Information