Extract substrings from field sql/presto
问题 I have columns in my database that contains values separated by /. I am trying to extract certain values from columns and create new row with them. Example of data look like below; user/values2/class/year/subject/18/9/2000291.csv holiday/booking/type/1092/1921/1.csv drink/water/juice/1/232/89.json drink/water1/soft/90091/2/89.csv car/type/1/001/1.json game/mmo/1/2/3.json I want to extract the last 3 numbers from the data e.g., from user/values2/class/year/subject/18/9/2000291.csv I want x =