cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

regular expression alarm url

Resolvido!
Ir para a solução

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

0 Kudos
Mensagem 1 de 6
3.565Exibições

@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.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Mensagem 2 de 6
3.550Exibições
Solução
Aceita por Joachim082

If as jcarmody asked, the name will always be between "monitor\" and ".Alarms" use the sub match output of Match Regular Expression

 

regexp.png

 

It pulls out the alam name from the whole match.

Omar
0 Kudos
Mensagem 3 de 6
3.539Exibições

And, if the other option is true, this regexp will give you the name in the "whole match" output.

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Mensagem 4 de 6
3.528Exibições

Thanks, that works great for me

0 Kudos
Mensagem 5 de 6
3.518Exibições

Which one?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Mensagem 6 de 6
3.516Exibições