Is it possible to repeat an array loaded column of data within the table itself, modded with regex?

Is it possible to repeat an array loaded column of data within the table itself, modded with regex?

hm123hm123 Posts: 84Questions: 27Answers: 1

Say this is the default table:

http://live.datatables.net/qamijabo/1/

It has columns loaded from a json array.

I was wondering how I could dynamically generate an extra column after 'Name', without actually changing the json array itself. This new column would be a repeat of the data in 'Name', but modifiable via regex. For example, I would want the new column to not have the 'a' letter in any of its cells. Like so:

'Name' | 'ModdedName'

Airi Satou | iri Stou
Angelica | ngelic
Ashton Cox | shton Cox
Bradley Greer | Brdley Greer
Wagner | Wgner

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599
    Answer ✓

    Something like this? :)

    Colin

  • hm123hm123 Posts: 84Questions: 27Answers: 1
    edited May 2020

    Works brilliantly Colin

This discussion has been closed.