VB.Net Split string after certain words -


After

I am struggling to find a solution to my small problem in VB.Net .

I basically an XML that I have a string basically need to put a new line (Chr (13) after a few words

My string example If ;.

  TAF AMD EGNM 171734Z 1718/1818 16010KT 9999 BKN018 Tempo 1718/1803 8000 -RA BKN010 PROB30 Tempo 1718/1724 4000 RADZ BKN006 PROB40 Tempo 1800/1809 BKN005 PROB40 Tempo 1809/1818 6000 SHRA BKN010 BKN020TCU Biisimji 1810/1813 23010KT  

I look like it needs;

  TAF AMD EGNM 171734Z 1718/1818 16010KT 9999 BKN018 Speed ​​1718/1803 8000 -RA BKN010 PROB30 Speed ​​1718/1724 4000 RADZ BKN006 PROB40 Speed ​​1800/1809 BKN005 PR OB40 speed 1809/1818 6000 SHRA BKN010 BKN020TCU BECMG 1810/1813 23010KT  

As for the split keywords you can see 'Tempo' , < code> 'PROB30' , 'PROB40' etc.

Any ideas

Try this :?

  dim ToReplace () new string () {" speed "," PROB30 "," PROB40 ", (... )} Each word string toReplace value = value.Replace (word = for Environment.NewLine & amp; Word) next  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -