[erlang-questions] How to extract string between XML tags

Eckard Brauer eckard.brauer@REDACTED
Sat Sep 29 13:30:29 CEST 2018


Hello,

just another (a beginner's) question probably leading away from the
initial point:

If I use 

T = re:replace("<th>title <b>bold</b></th>",
	"<\([^>]\+\)>\(.*\)</\([^>]\+\)>",
	"\\1 \\2 \\3",
	[global,{return, list}]).

how could I check that T is of the form "X Y X"?



Am Sat, 29 Sep 2018 11:18:14 +0200
schrieb PAILLEAU Eric <eric.pailleau@REDACTED>:

> Hello,
> BTW  "</?[^>]{1,}>"  works too, no need to escape /  (Perl
> reflex :) ...)
> 
> 
> Le 29/09/2018 à 11:13, PAILLEAU Eric a écrit :
>  [...]  
>  [...]  
>  [...]  
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



-- 
:)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180929/983dbbdb/attachment.bin>


More information about the erlang-questions mailing list