texte over several lines

A place to try and solve your RegEx problems.
Post Reply
Jochen
Posts: 1
Joined: Fri Feb 26, 2021 6:18 pm

texte over several lines

Post by Jochen »

Hi,
How can I find Texts like this?

<div ..... anytext (but not >) .....>

the first ending > may be on several lines later.
User avatar
DigitalVolcano
Site Admin
Posts: 1715
Joined: Thu Jun 09, 2011 10:04 am

Re: texte over several lines

Post by DigitalVolcano »

The answer here may help - it's for grabbing a whole div using regex-
https://stackoverflow.com/questions/346 ... pecific-id


So you'd want something like

<div [^>]*></div>
Post Reply