Powershell Regex extracting values not ending with mid string -


I need a regex, which will work with powershell.

It's like string

  .. .. .. .. \ packages \ Microsoft.Samples.Security.SSPI.1.0.0 \ lib \ net11 \ Microsoft .Samples.Security.SSPI.dll .. \. \. \ Packages \ Antlr3.3.4.1.9004 \ lib \ Antlr3.Runtime.dll   

Vacancy number and name removal in these cases:

  samples. Security. SPI and 1.0.0 AntRR3 and 3.4.1.9004   

I believe

  packages \\ (& lt ;? Name & gt; [^ \ \\\] (& lt;?!. \ [0-9] + \).) (\ Lt & gt; version & gt; [0-9] + (\ [[0- 9] +) + ) [\\\ /]   

should do the trick

but it does not seem to look like a window power shell to look for a job. >

I'm not familiar with the regex taste of powershell, but it seems like you need to start with is not.

Are you a lazy quarantine +? Use to stop at the first place:

  package \\ (? & Lt; name & gt; [^ \\] +?) \. See (? & Lt; version & gt; \ d + (?: \. \ D +) *)   



Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -