String reg exp error on launching in line 1

Hi,
Get File name from $CmdLineRaw without path and this error appeared. I got this example from a tutorial and I followed all the steps from the tutorial and only on my PC this error appeared. I am a newbie and I want to learn but I for now I cannot solve this kind of errors. Any expert can help me please to fix this one ?
Thank you experts !

test
Error in StringRegEXP () ‘The Error Number is : 1’
