I'm trying to use ReplaceText to remove x number of lines from the top of a flowfile based on a flowfile attribute.  I'm using the following regex but ReplaceText says its invalid:
 
^(.*?\n){${skip_lines}}
 
 It seems like I should be able to reference a flowfile attribute from regex according to this question but I just get an error.  Any idea how I should be doing this?  My full config is below:
