Published
Edited
Jul 27, 2022
1 star
Insert cell
Insert cell
filename = 'rn_image_picker_lib_temp_baf97675-17cf-425c-928a-9dac228bf28c.jpg'
Insert cell
Insert cell
match = filename.match(/^(.+)\.(\w+)$/)
Insert cell
match[1]
Insert cell
match[1].substring(0, 10)
Insert cell
match[2]
Insert cell
Insert cell
named_match = filename.match(/^(?<base>.+)\.(?<ext>\w+)$/)
Insert cell
named_match.groups.base
Insert cell
named_match.groups.ext
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more