Perl

Moderators: Jonathan
Number of threads: 1236
Number of posts: 3605

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need help with a regular expression Posted by gnaik on 14 Mar 2012 at 11:48 PM
I am trying to extract data from braces. In one such record I encountered multiple braces with data. I just need the last braces with data. How should I do it?
Example of data:
10,0490152,"DORIAN'S TIJUANA, SA DE CV ",CALLE (ART 123) 1620-A ,TIJUANA BC ,MEXICO, ,OA617069,11/10/08,NA, (195.16),001111


Regular expression currently using: /\((.*?)\)/

I need to extract 195.16 but ART 123 gets extracted.

All the help is much appreciated!!
Report
Re: Need help with a regular expression Posted by hello_world on 26 May 2012 at 8:56 AM
/.*\((.*?)\).*/

Report
Re: Need help with a regular expression Posted by sheilamotown on 14 Aug 2012 at 9:41 PM
HVAC professionals, who work with various ventilation and heating machinery for a living, have been enjoying a steady salary, benefits, flexible work hours and practically unlimited clients. [url=http://hvactrainingschools.net/hvac-training-in-vermont/]http://hvactrainingschools.net/hvac-training-in-vermont/[/url]
Report
Re: Need help with a regular expression Posted by sheilamotown on 14 Aug 2012 at 9:43 PM
HVAC professionals, who work with various ventilation and heating machinery for a living, have been enjoying a steady salary, benefits, flexible work hours and practically unlimited clients. [url=http://hvactrainingschools.net/hvac-training-in-vermont/]http://hvactrainingschools.net/hvac-training-in-vermont/[/url]



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.