SOLVED
regex clean column
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Nouha
6 - Meteoroid
‎02-14-2019
09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello everyone,
I am very new to regex and i can't seem to make it work for my issue, but i think it might be the right solution.
I have a column with image sizes that look like this
and i would like the end result to be just a column with the sizes as so "320x50" , "1200x250" no matter if the sizes are
I put the file sample in :)
if there is a way to do it without regex its good too
thank you so much for your help
Nouha
Solved! Go to Solution.
3 REPLIES 3
neilgallen
12 - Quasar
‎02-14-2019
09:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Nouha Probably a simpler way to do this in one expression, but parsing it into two groups using
(\d+)(?:\D)(\d+)
and then putting the first and second marked groups back together seems to work just fine based on your sample.
‎02-14-2019
09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thank you tons, it works :)
17 - Castor
‎02-14-2019
09:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
