• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

Regular Expression help!

Hi All,

I am trying to write a regular expression to match a string that begins with "(-" and ends with ")". Eg. (-0.21)
Does anyone know how to do this?

thanks in advance
0
asphead
Asked:
asphead
1 Solution
 
TimCotteeHead of Software ServicesCommented:
Hi asphead,

\(\-\d*\.\d*\)

Should do it.

Tim Cottee
0
 
aspheadAuthor Commented:
Perfect. Thanks Tim!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now