Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
Questionregex help Pin
uglyeyes26-Jan-10 13:34
uglyeyes26-Jan-10 13:34 
Answerrepost Pin
Luc Pattyn26-Jan-10 13:40
sitebuilderLuc Pattyn26-Jan-10 13:40 
AnswerRe: regex help Pin
vivasaayi26-Jan-10 18:19
vivasaayi26-Jan-10 18:19 
GeneralRe: regex help Pin
uglyeyes26-Jan-10 21:15
uglyeyes26-Jan-10 21:15 
GeneralRe: regex help Pin
#realJSOP27-Jan-10 1:24
mve#realJSOP27-Jan-10 1:24 
GeneralRe: regex help Pin
uglyeyes27-Jan-10 2:26
uglyeyes27-Jan-10 2:26 
GeneralRe: regex help Pin
basantakumar27-Jan-10 3:20
basantakumar27-Jan-10 3:20 
GeneralRe: regex help [modified] Pin
uglyeyes27-Jan-10 11:35
uglyeyes27-Jan-10 11:35 
Hi thanks but the text i provided was just an example real text looks something like below and i need a regex for this one below

<p>&nbsp;&nbsp;&nbsp;</p>
<p>red delicious.</p>
<div class="central"><p>&nbsp;&nbsp;&nbsp;</p>
<FORM action="product.asp" method="post" >
<INPUT type="hidden" name="ss" value="3">
<INPUT type="hidden" name="xx" value="xx">
<INPUT type="hidden" name="yy" value="yy">

<input type="image" src="./main/apple.png" value="Click here" />
</form><p>&nbsp;&nbsp;&nbsp;</p>

<p>&nbsp;&nbsp;&nbsp;</p>
<p>riped pear.</p>
<div class="central"><p>&nbsp;&nbsp;&nbsp;</p>
<FORM action="product.asp" method="post" >
<INPUT type="hidden" name="ss" value="3">
<INPUT type="hidden" name="xx" value="xx">
<INPUT type="hidden" name="yy" value="yy">

<input type="image" src="./main/pear.png" value="Click here" />
</form><p>&nbsp;&nbsp;&nbsp;</p>


this one is not working for me as its getting more text than i need

<pre>
(?&lt;=\s\s\&lt;p\&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;\&lt;/p\&gt;\n\t\t\s\s\&lt;p\&gt;).*?(?=\\&lt;/p\&gt;\n\t\t\s\s\&lt;div class=""central""\&gt;
</pre>

modified on Wednesday, January 27, 2010 6:14 PM

GeneralRe: regex help Pin
uglyeyes27-Jan-10 16:48
uglyeyes27-Jan-10 16:48 
GeneralRe: regex help Pin
uglyeyes27-Jan-10 18:41
uglyeyes27-Jan-10 18:41 
GeneralRe: regex help Pin
uglyeyes28-Jan-10 12:50
uglyeyes28-Jan-10 12:50 
GeneralRe: regex help Pin
Ravi Sant14-Apr-11 1:42
Ravi Sant14-Apr-11 1:42 
GeneralRe: regex help [modified] Pin
ahmed_elshiwy4-Jan-13 0:59
ahmed_elshiwy4-Jan-13 0:59 
QuestionVery Basic question in network programming Pin
ashish8patil26-Jan-10 11:09
ashish8patil26-Jan-10 11:09 
AnswerRe: Very Basic question in network programming Pin
Nicholas Butler26-Jan-10 12:44
sitebuilderNicholas Butler26-Jan-10 12:44 
QuestionMarshalling Pin
3bood.ghzawi26-Jan-10 11:06
3bood.ghzawi26-Jan-10 11:06 
AnswerRe: Marshalling Pin
DaveyM6926-Jan-10 11:52
professionalDaveyM6926-Jan-10 11:52 
GeneralRe: Marshalling Pin
Luc Pattyn26-Jan-10 13:42
sitebuilderLuc Pattyn26-Jan-10 13:42 
QuestionDisplaying the contents of a List&lt;string[]&gt; in a ListBox Pin
Douglas Kirk26-Jan-10 9:47
Douglas Kirk26-Jan-10 9:47 
AnswerRe: Displaying the contents of a List&lt;string[]&gt; in a ListBox Pin
DaveyM6926-Jan-10 10:33
professionalDaveyM6926-Jan-10 10:33 
GeneralRe: Displaying the contents of a List&lt;string[]&gt; in a ListBox Pin
Douglas Kirk26-Jan-10 10:58
Douglas Kirk26-Jan-10 10:58 
GeneralRe: Displaying the contents of a List&lt;string[]&gt; in a ListBox Pin
DaveyM6926-Jan-10 11:23
professionalDaveyM6926-Jan-10 11:23 
AnswerRe: Displaying the contents of a List&lt;string[]&gt; in a ListBox Pin
sanforjackass26-Jan-10 10:37
sanforjackass26-Jan-10 10:37 
GeneralRe: Displaying the contents of a List&lt;string[]&gt; in a ListBox Pin
sanforjackass26-Jan-10 11:10
sanforjackass26-Jan-10 11:10 
AnswerRe: Displaying the contents of a List&lt;string[]&gt; in a ListBox Pin
Alex Manolescu26-Jan-10 11:13
Alex Manolescu26-Jan-10 11:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.