1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help with characters

Discussion in 'Skript' started by Funck, Dec 10, 2018.

Thread Status:
Not open for further replies.
  1. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    hello, users. I make guilds on the skript and have 1 question.
    How to prohibit all characters except those specified?
    my code
    Code (Skript):
    1.                         if {coins.%player%} is not below 20000:
    2.                             if arg-2 regex matches "[a-zA-Z]":
    3.                                 if length of arg-2 > 6:
    4.                                     message "make guild"
    5.                                 else:
    6.                                     message "&cerror2"
    7.                             else:
    8.                                 message "error, only english characters"
    and it's not work ;(
     
  2. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    try "/[a-zA-Z]/g"
     
  3. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    not working ;(
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    are you wanting just letters?
    I believe its "[a-zA-Z]+"
     
    • Agree Agree x 1
  5. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    thx, thats working. solved.
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Awesome :emoji_slight_smile:
    Glad that is working for you :emoji_thumbsup:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...