B4J Question other behavior Regex.IsMatch("[\d\w]+", text) in b4j and b4a

Discussion in 'B4J Questions' started by schimanski, Jun 26, 2015.

  1. schimanski

    schimanski Well-Known Member Licensed User

    In b4j, the code works correct for me and filterd 'ä, ö, ü'.
    In b4a it doesn't...

    Code:
    If Regex.IsMatch("[\d\w]+", tf1.Text) = False
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    What exactly are you trying to implement?
     
  3. schimanski

    schimanski Well-Known Member Licensed User

    I tried to check a textfield, if the text doesn't contains illegal characters for an URL....
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Use this pattern: [A-Za-z0-9_]+

    The Android implementation is actually more correct in this case.
     
    schimanski likes this.
Loading...