• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • 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
 
TimCotteeCommented:
Hi asphead,

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

Should do it.

Tim Cottee
0
 
aspheadAuthor Commented:
Perfect. Thanks Tim!
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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