A
A
all230819922015-06-30 10:58:15
Java
all23081992, 2015-06-30 10:58:15

How to set a regular expression?

Hello
Help me parse a string using a regular expression. My strength is not enough
The string "Unknown Area Type<BR><BR><B>NAME</B> = Korochan District<BR><B>FEATUREID</B> = 11<BR><B>Desc</B> = <BR><B>Kultura</B> = ".
At the exit, you need to get
NAME - Korochansky district
FEATUREID - 11
Desc -
Kultura -

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2015-06-30
@all23081992

in its simplest form https://regex101.com/r/eF7mC5/1

S
ShamblerR, 2015-06-30
@ShamblerR

.*?<B>(.*?)<\/B> = (.*?)<BR><B>(.*?)<\/B> = (.*?)<BR><B>(.*?)<\/B>

$1 -$2
$3 -$4
https://regex101.com/r/jN7vG2/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question