I'm writing a python script using regex expressions and I found what is needed in perl, but as I am not strong in perl I don't clearly understand what is written. Here is the code:
'\\b' . $2 .'\\b.{0,15}' . $3 . '[^\\d]{0,5}' . $4 . ((defined $5) ? '[^\\d]{0,5}' . $5 : ''
The problem is mainly in the of line where it checks if $5 is defined. Can you please help me undertand this line ?