Regex - get everything after the last '.'
Options
![Seno](https://us.v-cdn.net/6037124/user_avatars/5531666.jpg)
Seno
Member ✭
I create the metadata of an image ('create image from file'), and I want to get the type of the image. So, in the metadata.path in the picture below I want to run the regex [^.]*$ which would get me e.g. a png string from an image.png string.
How can I implement this?[image.png]
thanks
How can I implement this?[image.png]
thanks
Comments
-
Regex could do this, but there's a simpler way: I would do a "split" on "." and then stack another filter, "pop". That will turn image.png into ["image", "png"] (split) and then return the last element, "png" (pop).
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback