如何在c#中的两个字符串之间提取整个文本? [英] How to extract entire text between two strings in c#?

查看:93
本文介绍了如何在c#中的两个字符串之间提取整个文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How to extract entire text between two strings in c#?





我正在使用ItextSharp dll。我能够使用PDFParser提取整个文本。

但是我想在两个字符串之间提取整个内容(起始字符串和结束字符串)(比如宣言和PJSC)。



I am using ItextSharp dll. I am able to extract the entire text using PDFParser.
But I want to extract the entire content in between two strings(start string and End string)(say Declaration and PJSC).

推荐答案

String.IndexOf方法(字符串)(系统) [ ^ ]是你的朋友。


这篇关于如何在c#中的两个字符串之间提取整个文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆