Regex entspricht und ersetzt eindeutige Werte im 7. Element der HTML -TabellenreihenJavaScript

Javascript-Forum
Anonymous
 Regex entspricht und ersetzt eindeutige Werte im 7. Element der HTML -Tabellenreihen

Post by Anonymous »

Ich versuche, HTML-Tabellenzeilen zu verarbeiten und die numerischen Werte im 7. Element durch ein bestimmtes Linkformat zu ersetzen.

Code: Select all

body {
font-family: sans-serif;
}

table {
border-collapse: collapse;

td {
padding: 0.5em;
border: thin solid lightgray;
}

tr td:nth-child(7) {
background:  yellow;
}

}< /code>



2037


HOUDERS, KLEIN, MET GAS (GASPATRONEN), zonder aftapinrichting, niet hervulbaar


2


5TF



2.3+2.1


303


120 ml


E0


P003

LP200


PP17
PP96
RR6
L2


MP9







1
(D)

V14


CV9 CV12


S2 S14







2037


HOUDERS, KLEIN, MET GAS (GASPATRONEN), zonder aftapinrichting,  niet hervulbaar


2


5TFC



2.3+2.1+8


303 327 344


120 ml


E0


P003

LP200


PP17
PP96
RR6
L2


MP9







1
(D)

V14


CV9 CV12


S2 S14







2037


HOUDERS, KLEIN, MET GAS (GASPATRONEN), zonder aftapinrichting, niet hervulbaar


2


5TO



2.3+5.1





120 ml


E0


P003

LP200


PP17
PP96
RR6
L2


MP9







1
(D)

V14


CV9 CV12






< /code>
< /div>
< /div>
< /p>
Ich brauche eine Regex, die:
nur mit den Werten im 7. Element für jeden Element übereinstimmt.  href = "#mk $ 303"> $ 303  
327 → $303

...

$303 $327 $344

...
< /code>
Ich habe Muster ausprobiert wie:
([\s\S]*?)(\n

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post