[CLOSED] specific words in the MaskRe

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] specific words in the MaskRe

    How can I specify specific words in the MaskRe property of a textfield?

    For example, it only accepts: 'word1', 'word2' and 'word3'


    thanks!
    Last edited by fabricio.murta; Nov 30, 2020 at 3:16 PM.
  2. #2
    Hi. Can you provide the regular expression that you are using? The regular expression is used by the component to validate the input, so if the regular expression you are using captures those values, then it should work.
    Geoffrey McGill
    Founder
  3. #3
    MaskRe="[/abc/, /jko/]"

    But it doesn't work for me, it accepts abc, bca, ccc, ooo, etc.

    I need it accept 'abc' and 'jko' strictly in that order
  4. #4
    the following expression works for me but only if I assign it to the regex property, how can I get it to work for me in maskre?

    Regex="/\b(abc|jko)\b/"
  5. #5
    I tested your last regex and it doesn't appear to match the cases in your requirements.

    https://regex101.com/r/5O94i5/1/
    Geoffrey McGill
    Founder
  6. #6
    Yes that is an example that meets my requirement, with that expression I can capture abc or jko. That works in the regex property, but not in the maskre property, what is the difference between maskre and regex? thanks!

Similar Threads

  1. MaskRe Percentage
    By mehrzadtejareh in forum 2.x Help
    Replies: 0
    Last Post: Feb 20, 2017, 6:13 AM
  2. [CLOSED] Tags as floating words and rearranging int textarea?
    By rthiney in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 26, 2014, 8:48 AM
  3. Replies: 0
    Last Post: Sep 30, 2011, 7:43 AM
  4. [CLOSED] some words are broken after SVN Upate
    By skyone in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jul 24, 2010, 1:08 PM
  5. [CLOSED] TextArea Maximum Words
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 09, 2009, 1:01 AM

Posting Permissions