0

I'm trying to create an HTML table using javascript from a String that I will get from a database. the data is a wiki table like the example I will leave below:

||Information Communicated||who||when||Complete|||aa|aa|aa|aa|

I've tried using this regex expression: [^|]*\||(\w+)\||

but it's selecting all pipes. I want to get the double pipe with the string between the first || and last || which means in this case

||Information Communicated||who||when||Complete||

I don't know what is missing but please help me

Nessrine Hafi
  • 87
  • 2
  • 16

0 Answers0