Regular Expression Syntax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom

    #1

    Regular Expression Syntax

    I have a combo box with a blank row in it and several
    other rows from a database. When the form loads, the
    default is blank, thereby forcing my users to select
    something.

    I need assistance constructing the Validation Expression.

    Can anyone help me construct the Validation Expression to
    see if the row is blank?

    Thanks

    Tom

  • Yura2000

    #2
    RE: Regular Expression Syntax

    This regex matches to any empty row
    [^.]?\n

    Comment

    • Tom

      #3
      RE: Regular Expression Syntax


      Many thanks. But can you explain the syntax.

      I understand the ^ Matches the position at the beginning
      of the input string
      I understand that . Matches any single character.
      I understand the ? is used to match the entire string.
      I understand the \m is for a new row

      But where does it match a BLANK ROW?



      Thanks

      Tom
      [color=blue]
      >-----Original Message-----
      >This regex matches to any empty row
      >[^.]?\n
      >.
      >[/color]

      Comment

      • Yura2000

        #4
        RE: Regular Expression Syntax

        In the given case ^ is "NOT"
        ^. - it says "without any characters, except \n
        ? - it's about quantity

        Hope, it will help.

        Comment

        Working...