Regex needed for numbering

Hi I only want regex query to extract numbering in heading
4.4.1.2 Product safety
7.2.4 / 8.4.2.4.1 Second party auditor competency / Second party audit
8.3.2.1 Design and development planning – supplemental
Want Output as 4.4.1.2 ,8.3.2.1 , 7.2.4 / 8.4.2.4.1

@Kuldeep_Pandey

Try the following regex:

^[\d./\s]+(?<=\w)

Regards

Hi @Kuldeep_Pandey

You can use this Regex given below:

[0-9./\s]+(?=[\sa-zA-z]+)

and when you retrieve the result you have to remove all the blank ones from it.

Thanks

Hi @Kuldeep_Pandey

How about this Regular expression?

System.Text.RegularExpressions.Regex.Match(YourString,"^[\d..\/\s]+(?=\s)").Tostring

Regards
Gokul

10.2.5 Warranty management systems
9.2.2.4 Product audit
8.5.1.1 Control plan
8.5.6 / 8.3.6.1 Control of Changes / 8.3.6.1/8.5.6 Design and development changes – supplemental
Give me for this

Hi @Kuldeep_Pandey
Input string:
10.2.5 Warranty management systems
9.2.2.4 Product audit
8.5.1.1 Control plan
8.5.6 / 8.3.6.1 Control of Changes
8.3.6.1/8.5.6 Design and development changes – supplemental

Regex Expression:

System.Text.RegularExpressions.Regex.Match(YourString,"[\d](.*)(\..)+(?=\s[A-Z])").Tostring

Hope it helps!!
Regards,

Same one is working @Kuldeep_Pandey Can you check

^[\d..\/\s]+(?=\s)

image

System.Text.RegularExpressions.Regex.Match(YourString,"[\d..\/\s]+(?=\s)").Tostring.trim

Regards
Gokul