1
Answer

Regular Expressions for String

sampath meka

sampath meka

10y
791
1
string str1="3000'10d        C_Variante_DBC_Schwelle_e  00000011b, h               // Schwellendefinition für Dynamischen Bremsassistent (Dynamic Brake Control) ~ 0: DBC-Schwelle A (unempfindlich) ~ 1: DBC-Schwelle B (weniger empfindlich) ~ 2: DBC-Schwelle C (standard/empfindlich) ~ 3: undefined";


I want to implement Regular expression so that my result would be As Below:

Expected Output:

3000
10d
C_Variante_DBC_Schwelle_e
00000011b


string str2 ="3000'23d-24d    C_Funktion_FLM_BMW_aktiv_c  11111111b, h";

I want to implement Regular expression so that my result would be As Below:

Expected Output:

3000
23d
24d
C_Funktion_FLM_BMW_aktiv_c
11111111b


string str3 ="3001'00d-39d    Codierdatengruppe       Physik                        Aktivierungsbedingung_G011: true";

I want to implement Regular expression so that my result would be As Below:

Expected Output:

3001
00d
39d
Codierdatengruppe
Physik



Answers (1)