Question: for example

```
public class Main
{
    public static void main(String[] args) {

            int[] arr = new int[args.length];
            for (int i = 0; i < args.length; i++)
            {
             arr[i] = Integer.parseInt(args[i]);
            }
            printarr pp = new printarr();
            pp.pnt(arr);
    }
}

public class printarr{
    public int pnt(int[] arr){
        for(int i=0;i<arr.length;i++){
            System.out.println(+arr[i]);
        }
        return arr;
    }
}

```

i dont know but something is wrong please help me out
when ever i compile it it gives
printarr.java:6: error: incompatible types: int[] cannot be converted to int
return arr;
^
1 error

Answer: 
You may check the string at [this link](https://r12a.github.io/uniview/?charlist=%F0%9D%95%BE%F0%9D%96%8D%F0%9D%96%8E%F0%9D%96%97%F0%9D%96%94%F0%9D%96%93#title) and you will see that the "" string consists of characters belonging to `\p{L}` category. Your regex starts with `[^А-я\w\d`, which means it matches any chars but Russian chars (except `ё` (that you define a bit later) and `Ё`), any Unicode letters (**any** because in Python 3, `\w` - by default - matches any Unicode alphanumeric chars and connector punctuation.

It appears you only want to remove Russian and English letters, so use the corresponding ranges:

```
r"[^А-ЯЁа-яёA-Za-z0-9\n ,.?!/@#:()]+"

```

It matches one or more chas other than

* `А-ЯЁа-яё` - Russian letters
* `A-Za-z` - ASCII letters
* `0-9` - ASCII digits
* `\n ,.?!/@#:()` - newline, space, comma, dot, question and exclamation marks, slash, ampersand, hash, colon and round parentheses.
You can make it so it only matches the type you need. Instead of the string type that you don't need.

This should work `[А-я\w\d\"+\"\n\"+\" ,.?!ё/@#:()]`