#dominoforever | Product 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.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Nov 15 2018
  • Needs review
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    1 Jun, 2019 08:53am

    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