SOLVED
REGEX Replace
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
ryanmor24
6 - Meteoroid
‎07-21-2021
02:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
So I have ID numbers that need to be fixed. They consist of 2 formats: SV0N00555. and SV0I0555. I need to take the
"N" and "I" out of these. How can I best do that?
Solved! Go to Solution.
Labels:
- Labels:
- Data Investigation
- Regex
2 REPLIES 2
17 - Castor
‎07-21-2021
02:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ryanmor24
You can do this with a simple replace formula, assuming N and I will never appear in another part of the field.
replace(replace([Field],"N",''),'I','')
Elias_Nordlinder
11 - Bolide
‎07-21-2021
02:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @ryanmor24 ,
I think something like this should work, I have attached a workflow as well.
It takes out the first character (S or I) after the first number (0).
- \d{1}([A-Z]{1})
* \d{1} -> One number
* ([A-Z]{1}) -> Thing to replace, one letter after one number
Let me know if you have any more questions 🙂
