Here is what I’m trying to do:
-asigne to an Array the value of each of the following lignes:
«
Chauffe-piscine
Foyer fournaise ( Max. 50 000 BTU / h )
Foyer-climatisant
Climatiseur-central
Surchauffeur eau chaude sanitaire (accessoires en option)
Chauffe résidentiel 1° génération ( Max. 60 000 BTU / h )
Chauffe-eau ( Max. 60 000 BTU / h )
Chauffe locatif 1° génération ( Max. 390 000 BTU / h )
Multi-locatif 2° génération ( Max. 390 000 BTU / h )
Chauffe-eau 3° génération ( Max. 390 000 BTU / h )
»
Note the amount of lignes and lenght are not known in advance. All I know is they all start with a capital ([A-Z]) and they all end with a carriage return (r).
What I would love to is say:
from [A-Z] (included) to r (excluded) asigne to Array and keep on going to the end of input.
Here is some of what I tryed:
string.match(/[A-Z]S+s(?!r)/g);
the probleme here is I need to repeat the sequence «S+s(?!r)» an unknown amount of times…
this does not seem to work either:
«/[A-Z