Solved

Regular Expression help!

Posted on 2006-07-18
2
231 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
ID: 17129233
Hi asphead,

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

Should do it.

Tim Cottee
0
 

Author Comment

by:asphead
ID: 17129324
Perfect. Thanks Tim!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

19 Experts available now in Live!

Get 1:1 Help Now