cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
302
Views
0
Helpful
1
Replies

REGEX Expression help

angemerveille4
Level 1
Level 1

Hi, 

i tried to use the Regex Expression to extract the length which is highlighted in bold in the text below. Is there anyone here who can help me? Please

fnlu1100095 d931 a2 6k schraube m10x95/s=17

04400.160.035 m16 35.0 preis anzeigen 50 + normen DIN≈6921 sechskantschrauben mit flansch DIN ≈6921

04400.160.030 m16 30.0 preis anzeigen 50 + normen DIN ≈6921 sechskantschrauben mit flansch DIN ≈6921

1 Reply 1

Yes, I can help you with that. You can use the following regex expression to extract the highlighted length (in this case 30.0 and 35.0) from the text:


m16 ( + +)


Here's a breakdown of the regex expression:

- `m16`: matches the exact string "m16"
- `( + +)`: captures a decimal number
- ` +`: matches one or more digits
- ` `: matches the decimal point
- ` +`: matches one or more digits after the decimal point

You can use this regex expression in a programming language or a tool like https://regex101.com/ to extract the desired values.

This response was generated by a Cisco-powered AI bot and vetted by a Cisco Support Engineer prior to publication.
This is part of a monitored experiment to see if the bot can help answer questions alongside community members. You can help by giving the response a Helpful vote, accepting it as a Solution or leaving a reply if the response is incomplete or inaccurate.
Review Cisco Networking for a $25 gift card