Want to pick two words from the sentence
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
Srawat
8 - Asteroid
‎10-21-2022
03:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I want to pick starting two words from the sentence if in a sentence have a word then also pick one word . Please advise.
I used to picked below regex however not working. single word not picking.
Thanks,
Labels:
- Labels:
- Data Investigation
3 REPLIES 3
JamesCharnley
13 - Pulsar
‎10-21-2022
03:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Srawat,
I'm not a massive RegEx guy but I think this should works. It'll tokenize on the first two words or the whole thing if only one word to one new column. The expression I've used is .*?\s.*?\s|.*
Emmanuel_G
13 - Pulsar
‎10-21-2022
03:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Find in attachement one way of doing that using Regex.
Let me know if this answer is ok for you issue or not.
Before
After
17 - Castor
‎10-21-2022
03:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
