I'm new to Perl and I was wondering if someone can help me. 

I have an input like this: 

```none
a,b,
c,d,e,f,g,h,
i,j,q // Letras

```

I'm trying to get the letters before `//` separately and then print them between `{}` separated by `:`.

I tried with this RE `([\w,;:\s\t]*)(\n|\/\/)/m` and I could get in `$1` all letters for each line (as a string including separators) but not what I want.

I need to match that pattern more than one time in the same file so I was using `/g`.

Edit:

Here is my code block:

```
while ( <> ) {
  if ( /([\w,;:\s\t]*)(\n|\/\/)/m ) {
    print "$1\n";
  }
} 

```