title: Change with grep|sed inverting the order of parametres
body: <p>I'm trying to make a bulk change with sed in a directory, from <code>{{ form|as_bootstrap }}</code> to <code>{% bootstrap_form form %}</code>, but "form" can be any name like "process_form" or "user_form".</p>
  
  <p>I found a grep that list all of them: <code>grep -r '{{ [a-z_\.]*^\|as_bootstrap }}' ./</code></p>
  
  <p>So I'm trying with this grep/sed command but it doesn't work:
  <code>
  grep -rl '{{ [a-z_\.]*^\|as_bootstrap }}' ./ | xargs sed -Ei s@'{{ \([a-z_\.]*\)^\|as_bootstrap }}'@'{% bootstrap_form \1 %}'@g
  </code></p>
  
  <p>Can you point me to the error in the sed regexp ??</p>