@@ -0,0 +1,2212 @@
+package com.btk5h.skriptmirror.skript.custom;%0A%0Aimport org.bukkit.event.Event;%0A%0Aimport java.util.List;%0Aimport java.util.regex.MatchResult;%0A%0Aimport ch.njol.skript.ScriptLoader;%0Aimport ch.njol.skript.Skript;%0Aimport ch.njol.skript.lang.Expression;%0Aimport ch.njol.skript.lang.ExpressionType;%0Aimport ch.njol.skript.lang.SkriptParser;%0Aimport ch.njol.skript.lang.util.SimpleExpression;%0Aimport ch.njol.skript.log.ErrorQuality;%0Aimport ch.njol.skript.util.Utils;%0Aimport ch.njol.util.Kleenean;%0A%0Apublic class ExprParseRegex extends SimpleExpression%3CString%3E %7B%0A  static %7B%0A    Skript.registerExpression(ExprParseRegex.class, String.class, ExpressionType.SIMPLE,%0A        %22%5Bthe%5D %5Bparse%5Br%5D%5D (regex%7Cregular expression)(-%7C )%3C%5C%5Cd+%3E%22);%0A  %7D%0A%0A  private int index;%0A%0A  @Override%0A  protected String%5B%5D get(Event e) %7B%0A    List%3CMatchResult%3E regexes = ((CustomSyntaxEvent) e).getParseResult().regexes;%0A    if (index %3C regexes.size()) %7B%0A      MatchResult match = regexes.get(index);%0A      int groupCount = match.groupCount();%0A      String%5B%5D groups = new String%5BgroupCount%5D;%0A%0A      for (int i = 1; i %3C= groupCount; i++) %7B%0A        groups%5Bi - 1%5D = match.group(i);%0A      %7D%0A%0A      return groups;%0A    %7D%0A    return new String%5B0%5D;%0A  %7D%0A%0A  @Override%0A  public boolean isSingle() %7B%0A    return false;%0A  %7D%0A%0A  @Override%0A  public Class%3C? extends String%3E getReturnType() %7B%0A    return String.class;%0A  %7D%0A%0A  @Override%0A  public String toString(Event e, boolean debug) %7B%0A    return %22parser mark%22;%0A  %7D%0A%0A  @SuppressWarnings(%22unchecked%22)%0A  @Override%0A  public boolean init(Expression%3C?%3E%5B%5D exprs, int matchedPattern, Kleenean isDelayed,%0A                      SkriptParser.ParseResult parseResult) %7B%0A    if (!ScriptLoader.isCurrentEvent(%0A        CustomEffect.EffectEvent.class,%0A        CustomExpression.ExpressionGetEvent.class,%0A        CustomExpression.ExpressionChangeEvent.class%0A    )) %7B%0A      Skript.error(%22The parsed regular expression may only be used in custom syntax.%22,%0A          ErrorQuality.SEMANTIC_ERROR);%0A    %7D%0A%0A    index = Utils.parseInt(parseResult.regexes.get(0).group(0));%0A    if (index %3C= 0) %7B%0A      Skript.error(%22The expression index must be a natural number.%22, ErrorQuality.SEMANTIC_ERROR);%0A      return false;%0A    %7D%0A    index--;%0A    return true;%0A  %7D%0A%7D%0A

Add missing regex expression