0

I have to remove a string like the following:

<jms:reference-file line="12">/../src/AppBundle/Resources/views/ControllerName/template_name.html.twig</jms:reference-file>

I have many files and I'd like to use the regular expression match provided by the PHPStorm editor.

Unfortunately I don't know Java and the editor required Java regular expressions.

I'm not so good with regular expressions in general but I think that matching this string is something not so hard...

Is there someone who can help me match all the strings like this in all files?

Aerendir
  • 6,152
  • 9
  • 55
  • 108

1 Answers1

0

Ok, using this tool http://regex.inginf.units.it/ (with small adjustments on my side) I finally get the regex that is this:

<jms:reference-file [^ ]++
Aerendir
  • 6,152
  • 9
  • 55
  • 108