hallo, hab mal wieder eine frage zu einem regex. ich möchte aus einem string in der art
list:1.qqq 2.www 3. eee 4. rrr 5. ttt:
eine html liste machen, also sowas:
<ol start="1" type="1">
<li>qqq</li>
<li>www</li>
<li>eee</li>
<li>rrr</li>
<li>ttt</li>
</ol>
allerdings klappt das nicht wirklich. hinter den zahlen muss auch nicht unbedingt was stehen, es kann also auch so aussehen:
list:1.qqq 2.www 3. 4. rrr 5. ttt:
dann soll sowas rauskommen:
<ol start="1" type="1">
<li>qqq</li>
<li>www</li>
<li>rrr</li>
<li>ttt</li>
</ol>
jemand eine idee?
ich bedanke mich vielmals!
list:1.qqq 2.www 3. eee 4. rrr 5. ttt:
eine html liste machen, also sowas:
<ol start="1" type="1">
<li>qqq</li>
<li>www</li>
<li>eee</li>
<li>rrr</li>
<li>ttt</li>
</ol>
allerdings klappt das nicht wirklich. hinter den zahlen muss auch nicht unbedingt was stehen, es kann also auch so aussehen:
list:1.qqq 2.www 3. 4. rrr 5. ttt:
dann soll sowas rauskommen:
<ol start="1" type="1">
<li>qqq</li>
<li>www</li>
<li>rrr</li>
<li>ttt</li>
</ol>
jemand eine idee?
ich bedanke mich vielmals!