in reply to Regexpresions

$var =~ /n\\(.?)\\/
This will match a 'n' followed by a '\' followed by 0 or 1 instance of any char followed by a '\'.

Thus in the case you provide it will not match anything.
There are two possibilities on what your want in your $1:
either what is between two '\' or what is between the first and last '\'
Which is either the regex $var =~ /n\\(.*?)\\/ or $var =~ /n\\(.*)\\/

The difference may be subtle, but look at the strings:
$var='{some text} n\{some text}\{some more text}\'; and $var='{some text} n\{some text}\{some more text}'; #Your old version
$1 in the first $var will become '{some text}' with the first regex and '{some text}\{some more text}' with the second.
$1 in the second $var will in either case be '{some text}'

T I M T O W T D I