sampath meka

sampath meka

  • NA
  • 41
  • 11.7k

Implement Regular Expression for a File Path

Apr 21 2014 3:30 AM
Hello All,

           This is sampath i have a file which contains all the File paths ,i want to break using regular expression Kindly help me.

Here are the strings:

string str1 = "/SCS/Customer/BMW/35Up/09_Testing/05_Software-Testing/DynamicTesting/Cantata/VIEW_BMW_35Up_Gladiator_Regression/MainMicro/Application/Comms/CommsArAdapter_Cfg/_FrCycle/test_FrCycle.c 1.1 d:\Sandbox\BMW35UP_Testview_I320\MainMicro\Application\Comms\CommsArAdapter_Cfg\_FrCycle\test_FrCycle.c";

Expected output:

test_FrCycle.c 
1.1

string str2 = "/SCS/SCS_Core_Based/08_Software/Application/SA/SA_GEN2/Lamp_Cfg/Application/Source/Lamp_Cfg.c 1.1.3.4 d:\Sandbox\BMW35UP_I330_1.345\MainMicro\Application\Sa\Lamp_Cfg\Source\Lamp_Cfg.c";

Expected Output:

Lamp_Cfg.c 
1.1.3.4 


                    Kindly help me to find solution for this


Thank You
Sampath




Answers (1)