How to extract a string between 2 strings using regexp ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2020 10:56 AM
I need to extract the version of CIs from the descriptin field of the CI. The description field will look line this:
jfshfshmn vshshjij ijjf0sfk, jhg9s, uishf9, Version 23.45.5679(E), fhuisfhaho
fsihsfpoh:hsfhsij
huisgfha:uhauhju
hoajfphnsiovj osvjis
I need to extract the the string between Version and ",". How can I do it using regular expression?
Please help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2020 11:05 AM
Hi skumars1808
Try this
(?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+)
If you also want (E)
(?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+.{3})
Use this website and try
https://regexr.com/
Regards
Pranav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2020 09:32 PM
Hi skumars1808
Hope you are doing good.
Is this question resolved or you need some more assistance?
if your query is resolved then please mark the correct response so that this thread can be closed.
Regards
Pranav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2020 02:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2020 03:44 PM
Hi
Hope you are doing well.
Is your question resolved? Or do we need to follow-up on this?
Please mark the answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.
Kind regards,
Willem