to see weather my line end with a word mix with character and digits ,, a line would look like this :if ( ($newLine =~ /$/)[0] eq /(\w+)$/ ) { print " the line $newLine\n"; }
that line is a one I would like to print b/c it countins a word at the end "dwo9" , however if it was somthing like @@ or a digit by it self or ? mark then I wont print. The pice of code I am doing seems to catch everything which is not what i want . peaceyty~uyuoo~iu99~##uyt~hu/dwo9
In reply to regex end of line by splitOnce
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |