Timeline for Getting the header names of rows matching string
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 5, 2022 at 15:28 | vote | accept | derrick | ||
| Jan 5, 2022 at 13:30 | comment | added | Thor | @omphanik: You should probably post this as a new question. Remember to include example input-/output-data and your current progress | |
| Jan 5, 2022 at 12:30 | history | edited | Ed Morton | CC BY-SA 4.0 | deleted 3 characters in body |
| Jan 5, 2022 at 12:05 | comment | added | derrick | This works perfectly! Could you explain how the line of code works? Right now I'm trying to modify the code: there are two Indexes Index 1 and Index 2, and searching either indexes would print both indexes, along with the corresponding header names like this row1(index1) row1(index2) Name1 Name3. | |
| Jan 5, 2022 at 9:50 | comment | added | Thor | @they: in that case limit the pattern with anchors, e.g.: ^(row1|row3)$ | |
| Jan 5, 2022 at 8:42 | comment | added | Kusalananda♦ | Note that if there are many rows, row1|row3 might also match row11 and row308. | |
| Jan 5, 2022 at 8:38 | history | answered | Thor | CC BY-SA 4.0 |