Result Filter Regex

Hello
when filtering the script outcome tru operation I pick regex which should fit for selecting the first ten line from the input. While testing in bash interpreter the regex works well but not inside Studio.

ie. Perl5: perl -ne'1..10 and print'
or
ie. Awk: awk 'FNR <= 10'

Tested with both expression types and even supressing the leading perl/awk wont help either.
Any clue.

BR
Raphael