SOLVED
RegEx help
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
Brad1
11 - Bolide
‎06-01-2021
10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I've got a .txt file.
Store#Store_Name|Store_Address
I need to add a pipe after Store_Name to make this file work. The Store Name is always the same. The Store # - I'm not sure if the number are all the same length. They might be. How can I add a delimiter after a certain String is found?
#123|Kmart123_Main_St
500|Kmart200_North_St
goes to:
#123|Kmart|123_Main_St
500|Kmart|200_North_St
Thanks in advance for any help.
Solved! Go to Solution.
Labels:
- Labels:
- Regex
1 REPLY 1
22 - Nova
‎06-01-2021
10:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Brad1
You can use regex formula like below. Consider pipe is needed when character is followed number. Place followed by number your scenario.
REGEX_Replace([Field1], "(.*\u)(\d.*)", "$1|$2")
Hope this helps 🙂
