473,385 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Extract text between ()

1
I'm looking for help, on how to extract text between parens. The text before and after does not remain constant in length. Any ideas?

For example I trying to pull out 123456789 from: http://www.thescripts.com/forum/(123...ewthread&f=129

But "http://www.thescripts.com/forum/" and "newthread.php?do=newthread&f=129" changes each time the URL is loaded.

Thanks in advance
Jul 24 '06 #1
2 2299
D_C
293 100+
int left_paren = * search for next occurence of '(' *
int right_paren = * search for next occurence of ')' *
str in_between = * take a substring that begins at left_paren+1 and ends before right_paren.
Jul 24 '06 #2
Banfa
9,065 Expert Mod 8TB
You might have to do something for the special case of () (or you might ot, depends on how you write the code).

When you've had an attempt post back your code and we will help with any problems it might have.
Jul 25 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: mickeydisn | last post by:
Sub: C++ Word automation Extract text hello. I want extact text form a word document using a visual c++ programme. I have see a lot of documentation. and my analysis is that I must use a...
1
by: Klaus Jensen | last post by:
Hi! Is it possible to extract text from an EPS-file using .Net? In this scenario, I need to process ads stored as EPS-files and extract all text (for fulltext-indexing purposes). I looked into...
0
by: Joris De Groote | last post by:
Hi, I'm looking for some code to extract text from PDF files. Can somebody help me? Thanks Greetz
3
by: Julien ARNOUX | last post by:
Hi, I have a problem :), I just want to extract text from pdf file with python. There is differents libraries for that but it doesn't work... pyPdf and pdfTools, I don't know why but it doesn't...
9
by: trihanhcie | last post by:
Hi, I would like to extract the text in an HTML file For the moment, I'm trying to get all text between <tdand </td>. I used a regular expression because i don't know the "format between...
0
by: Dominic | last post by:
I need to extract text by using Visio IFilter. Actually, I am using Visio IFilter and it works when I manually install Visio IFilter component before/after install my application. But I don't...
1
by: Alberto Sartori | last post by:
Hello, I have a html text with custom tags which looks like html comment, such: "text text text <p>text</ptext test test text text text <p>text</ptext test test <!-- @MyTag@ -->extract...
5
by: undbund | last post by:
Hi guys, can you guide me to tutorials, examples and scripts where I can learn how to extract text, images, etc from pdf file. Thanks Undbund
3
by: SteveB | last post by:
I have posted this question in the Visual Basic 2005 and Visual Basic .Net 2005 discussion groups, also. Hi. I am developing an application/web page with VB.Net that will populate a SQL...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.