I need to find a regular expression that will work with the following dummy input:
Lorem ipsum dolor sit -V amet, consectetuer adipiscing elit.
Aenean commodo ligula Charge Tip eget dolor. Aenean massa.
Cum sociis natoque penatibus et magnis dis parturient montes.
Nascetur ridiculus Charge Tip mus. Donec quam felis,-Vultricies nec.
Pellentesque eu, pretium quis, sem. Nulla consequat massa.
Quis enim. DonecCharge Tippede justo, fringilla vel, aliquet nec.-V
Vulputate eget, arcu. In enim justo, rhoncus ut.
And produce the following result:
Charge Tip -V
Charge Tip -V
Some notes:
- Charge Tip is always before -V
- Charge Tip may be attached to other data on the left and right.
- -V may be attached to other data on the left and right
I tried many links here already, such as: Regular expression to find two strings anywhere in input
I was unable to get any solution to work as the solutions fail to work on the RegExr site, which I am using to test the regex.
The final result I need is for the regex to work inside Agent Ransack 2014, as I need to search log files on a Windows XP machine.