Solved

get values after a character.

Posted on 2013-06-10
3
144 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

by Batuhan Cetin Regular expression is a language that we use to edit a string or retrieve sub-strings that meets specific rules from a text. A regular expression can be applied to a set of string variables. There are many RegEx engines for u…
Whatever be the reason, if you are working on web development side,  you will need day-today validation codes like email validation, date validation , IP address validation, phone validation on any of the edit page or say at the time of registration…
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…

810 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