Page 1 of 1

Extract text between X and Y

Posted: Thu Jul 03, 2014 5:01 am
by zeroist
Hi everybody,

I have a folder containing nearly thousand files.All contaning something like this:

kfslkfjaşj ctl02_ctlIsDetayi_ctlGenelSartlar" style What I need to extract ctl02_ctlIsDetayi_ctlPanelMeslek" style dfsdf

Here is X: ctl02_ctlIsDetayi_ctlGenelSartlar" style
Here is Y: ctl02_ctlIsDetayi_ctlPanelMeslek" style

is there any way to extract the part of of" What I need to exctract" part.

Re: Extract text between X and Y

Posted: Thu Jul 03, 2014 3:30 pm
by DigitalVolcano
You can use this in RegEx mode with the extract button:

RegEx:

Code: Select all

ctl02_ctlIsDetayi_ctlGenelSartlar"(.*?)ctl02_ctlIsDetayi_ctlPanelMeslek
Then using a text editor just replace the ctl02_ctlIsDetayi_ctlGenelSartlar and ctl02_ctlIsDetayi_ctlPanelMeslek phrases with nothing and you will have the text you want left over.

Re: Extract text between X and Y

Posted: Fri Jul 04, 2014 8:17 am
by zeroist
Hi admin,

I Did as you said but "no match found"

Thanks for your help.Here is a sample doc.in sample ,what I need is yellow part

http://docdroid.net/eab5

Re: Extract text between X and Y

Posted: Fri Jul 04, 2014 9:35 am
by DigitalVolcano
If it's over multiple lines you need to try it with the "Dot Matches Newline" option ticked.

Re: Extract text between X and Y

Posted: Fri Jul 04, 2014 10:01 am
by zeroist
"Dot Matches Newline" option was ticked.But the result is same. "no match found".Did/can you check doc below.


http://docdroid.net/eab5

Re: Extract text between X and Y

Posted: Fri Jul 04, 2014 10:11 am
by DigitalVolcano
Is the file you are trying to scan in Word (docx) format? TextCrawler will only read plain text docs.

Re: Extract text between X and Y

Posted: Fri Jul 04, 2014 11:03 am
by zeroist
I convert it to plain text docs.it worked.thank you very much