-1

I need a regular expression for eclipse that finds the string XYZ if it's somewhere in the <formula> tags. it is certainly across multiple lines too.

If easier, i can do this in notepad++

<formula>
    potential stuff. could be in tags
    XYZ 
    potential stuff. could be in tags
</formula>
adamdc78
  • 1,123
  • 8
  • 18
PartOfTheOhana
  • 613
  • 2
  • 16
  • 38

1 Answers1

-1

Use : (?m)(?s)<formula>.*(XYZ).*</formula>

Refer Eclipse File Search Dialog - Regular Expression for Group Unions and Negation and Eclipse file search pattern for exactly two occurences

Community
  • 1
  • 1
Chandrayya G K
  • 8,504
  • 4
  • 35
  • 65