Extract substring from string with no delimiters
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
With one of the platforms that I work with, the data extracts are often messy. I am looking to extract an ID from within a string with no delimiters present.
Example string: "Matthew(10/10/2000)FarmX1234-56789-01234DogsAndCats"
Example substring for extraction: "X1234-56789-01234"
The format is letter,number{4}-number{5}-number{5}, so not always "X" to begin with.
I presume this is RegEx but not entirely sure how to use it for this case.
Any help would be greatly appreciated, thanks!
Solved! Go to Solution.
- Labels:
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @mpeggielycetts, great that you've provided the exact pattern here - definitely one for RegEx. If you drag a RegEx tool into your workflow and put it in Parse mode, you ought to be able to use this expression to extract the necessary data:
([A-Z]\d{4}-\d{5}-\d{5})
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
