I have a csv file with the following format:
variable, name, date, location, youtube,
e1, My birthday, 21st april, USA, www.xyz.com
e2, your b'day, 1st May, India, www.abc.com
e3, christmas , 25th Dec, UK, www.christmas.com
Here, the first row represents the header, e1
, e2
and e3
are my variables.
Now I want to check if there is a variable called e1.name
in some text and then I want to replace it by corresponding value i.e My birthday
.
Similarly if there is a variable e2.location
, then it must be replaced by India
. Thus I want a kind of matrix like access.