Solved

get values after a character.

Posted on 2013-06-10
3
143 Views
Last Modified: 2013-06-12
I need to extract the last values in a list.

I need a regular expression that will extract everything after the "(" Can anyone assist with this?


add(10,3)
delete(1,3)
new(,3,4)
0
Comment
Question by:earngreen
3 Comments
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39236350
Try, and use $1 -

\((.*?)$

Open in new window

0
 
LVL 1

Expert Comment

by:vuhanguyen
ID: 39236611
You can try this (but not work in Javascript):

(?<=\()(.*?)(?=\))

Open in new window

0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39236697
If by "everything" you mean everything up to the ) then remove the $ from Mazdajai's suggestion, or change it to:

\((.*?)\)$
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

Suggested Solutions

Title # Comments Views Activity
Basic Regex for use in webservice 1 58
RegEx numeric validation 2 44
Validation of email address 2 49
regex. How to include lines between 10 78
I have been reconstructing a PHP-based application that has grown into a full blown interface system over the last ten years by a developer that has now gone into business for himself building websites. I am not incredibly fond of writing PHP code o…
As most anyone who uses or has come across them can attest to, regular expressions (regex) are a complicated bit of magic. Packed so succinctly within their cryptic syntax lies a great deal of power. It's not the "take over the world" kind of power,…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

920 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

15 Experts available now in Live!

Get 1:1 Help Now