16 01 1 16 01 6 01 1 1 Q37150076

(+16-01 1+16-01-* [6-01)己1+-1

need help correctly naming the regular expression anddescribing how it works.

(+16-01 1+16-01-* [6-01)己1+-1 Show transcribed image text (+16-01 1+16-01-* [6-01)己1+-1


Answer


This regular expression describes a positive or a negative floating point number.[-+]? gives an optional + or -[0-9]* gives zero or more digits[0-9]+ gives one or more digitsso, some strings this regular expression generates are25+25-25+.25-2.79+72.8912398

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.