12-01-2010 09:30 AM
Hi,
I have a problem with regular expression. I would like to filter only the name of a dsc alarm url: \\EW-MONITOR\monitor\000_t-ist_STB-M1-AS.Alarms.HI should be 000_t-ist_STB-M1-AS . Has somebody an hint for me?
Best Regards,
--
Joachim
Solved! Go to Solution.
12-01-2010 10:37 AM - edited 12-01-2010 10:38 AM
@Joachim082 wrote:
Hi,
I have a problem with regular expression. I would like to filter only the name of a dsc alarm url: \\EW-MONITOR\monitor\000_t-ist_STB-M1-AS.Alarms.HI should be 000_t-ist_STB-M1-AS . Has somebody an hint for me?
Best Regards,
--
Joachim
What will be constant in the name? Will it always be between "monitor/" and ".Alarms"? Will the format always be "###_<some text>_<other text>"?
This will be easy once I know what to look for.
12-01-2010 11:31 AM
If as jcarmody asked, the name will always be between "monitor\" and ".Alarms" use the sub match output of Match Regular Expression
It pulls out the alam name from the whole match.
12-01-2010 11:53 AM
12-01-2010 12:59 PM
Thanks, that works great for me
12-01-2010 01:00 PM