help me with regex, please!

  • Thread starter Thread starter alexvorn2
  • Start date Start date
A

alexvorn2

Hi!, how to get the text that is between < and > if it's length is
more that 10 characters , text contains this:

<
to select this text
<to select this text too>

<thisnot
 
Hi Alex,
Hi!, how to get the text that is between < and > if it's length is
more that 10 characters , text contains this:

<
to select this text

<to select this text too>

<thisnot

Is this from a text file? In that case you would have to read it in an
check for the "<" character to start saving it in a variable (or array
or list) and then for the ">" to stop. However, this variable (or array
or list) must only be a temporary one as you don't know when you start
if there will be a closing ">" character.

To "cut" the desired text out, you can use the InStr-Function which
gives you the position of the character (or string) you passed as an
argument. However, InStr only works with string variables.

Best regards,

Martin
 
Back
Top