RegEx Parse
- 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
Hi, pls refer to the screenshot attached, I am trying to use RegEx parse to separate the dates xx/xx from the words, (\d{2}/\d{2})(.*?) is my expression, but I only managed to split out the date and not the words, not sure where I went wrong. Hope to get some help. :)
Solved! Go to Solution.
- Labels:
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
An unescaped delimiter (/) must be escaped with a backslash (\). Additionally, the (?) is a lazy quantifier and matches as little text as possible while still allowing the overall pattern to match. Thus, you should remove. You can test/verify your regex at https://regex101.com/.
The following should work:
(\d{2}\/\d{2})(.*)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not sure what exactly you want, but I made two RegEx for you:
If you just want the dates parsed out:
(\d{2}/\d{2})
If you want two columns to split the date and the text that ensues, use this:
^(\d{2}/\d{2})?\s*(.*)
Hope this helps @Ashley
If the above solved your need, kindly like & mark as accepted solution so that you may help others find the solution more quickly + to close the thread as is. Thanks!
Best regards,
Calvin Tang
https://www.linkedin.com/in/calvintangkw/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Did my solution help? @Ashley
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
