Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

regular expression support for different aspects, field validation, db search

Regular expressions are very powerfull, but since we have dont have native support in LotusScript please extend LS classes to support it.

  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      Aug 5, 2024

      I used something like this in the past:

      Dim x As String
      Dim regexp As Variant

      x = "5s"

      Set regexp = CreateObject("VBScript.RegExp")
      regexp.Global = True
      regexp.Pattern = "^[0-9]+$"
      Print regexp.Test(x)

      Since it (CreateObject) does not work in Nomad, we need a native regex support urgently. See also DOMINO-I-636.

    • Guest
      Reply
      |
      Dec 19, 2020

      Please do it! Or expand the functionality of the operator "Like". This need for create a client-side form validation engine.

    • Guest
      Reply
      |
      Jun 1, 2019

      I use RegEx via LS2J, but LS2J is not supported in the DominoApp :(

       

       

      Uselsx "*javacon"

      Dim jSession As New Javasession, jClassP As Javaclass, jMethodC As JavaMethod

      Set jClassP = jSession.Getclass( {java/util/regex/Pattern})

      Set jMethodC = jClassP.GetMethod( "compile", "(Ljava/lang/String;)Ljava/util/regex/Pattern;" )

      Dim jPattern As JavaObject, jMatcher As JavaObject

      Set jPattern = jMethodC.Invoke( , fRule.pattern )

      Set jMatcher = jPattern.matcher( fValue )

      If Not ( jMatcher.matches()) Then

         Call m_fArrayErrors.AppendValue( fRule.message )

      End If