Solved

Regular Expression help!

Posted on 2006-07-18
2
229 Views
Last Modified: 2010-04-23
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
Comment
Question by:asphead
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
Comment Utility
Hi asphead,

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

Should do it.

Tim Cottee
0
 

Author Comment

by:asphead
Comment Utility
Perfect. Thanks Tim!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now