in reply to Re^2: Regular Expression Doubtin thread Regular Expression Doubt
# in rare cases with no spaces: ... $text =~ s/(?!\s)(<maths>)/ $1/g; ... [download]