Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

RegEx Help - Start with "string" but not include it

$
0
0

Hi Sirs,

I am writing a code and I had some problems with the RegEx part.

8=FIX.4.2| 9=253| 35=8| 128=XYZ| 34=124| 49=CCG| 56=ABC_DEFG04| 
52=20100208-18:51:42| 55=RRC| 37=NF 0015/02082010| 11=NF 0015/02082010| 17=0| 
20=0| 39=0| 150=0| 54=2| 38=1000| 40=2| 44=55.3600| 59=0| 31=0| 32=0| 14=0| 
6=0| 151=1000| 60=20100208-18:51:42| 58=New order| 30=N| 1=ABC123ZYX| 207=N| 
47=A| 10=037| 

From the message above (FIX 'tag'='value') I need to extract the value and the '=' sign.

For example:

User typed: 60

System returns: =20100208-18:51:42

I am using the following RegEx statement:

\|60=[\s\S]*?[^\|]*

So it returns: 

| 60=20100208-18:51:42

How can I remove the '| tag' part ? :/

Thank you in advance.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>