To CS Coders!! 
Author Message
 To CS Coders!!

Hi folks. I am helpess in parsing this string... It won't just parse... the
token is hex B1B1 or \xB1B1

string innerStuff=<P><FONT class=foo id=foo1>hello</FONT></P><FONT
class=foo2 id=foo3></FONT><FONT class=foo4 id=foo5></FONT><FONT
class=foo6 id=foo7></FONT>

Thanks
My code:
Regex regx=new Regex("\xB1B1");

string [] InnerStuff=regx.Split(innerStuff,5);

--
*************
Best Regards
Satch
*************



Wed, 06 Oct 2004 22:49:19 GMT  
 To CS Coders!!
Satch,
/x escapes ASCII characters, thus is followed by only two hex digits. Your sign is \xB1. If you want two,you
should repeat the escape sequence too (i.e. \xB1\xB1).
There were other syntactical mistakes (I assume it was pseudocode). This works:


class=foo2 id=foo3></FONT><FONT class=foo4 id=foo5></FONT><FONT
class=foo6 id=foo7></FONT>";

...

I assumed you wanted one or more repeats of the sign.
If it's not exactly what you wanted, please notify.

--
Yizhaq Shmaayahoo

Quote:

> Hi folks. I am helpess in parsing this string... It won't just parse... the
> token is hex B1B1 or \xB1B1

> string innerStuff=<P><FONT class=foo id=foo1>hello</FONT></P><FONT
> class=foo2 id=foo3></FONT><FONT class=foo4 id=foo5></FONT><FONT
> class=foo6 id=foo7></FONT>

> Thanks
> My code:
> Regex regx=new Regex("\xB1B1");

> string [] InnerStuff=regx.Split(innerStuff,5);

> --
> *************
> Best Regards
> Satch
> *************



Thu, 07 Oct 2004 00:12:42 GMT  
 To CS Coders!!
Thank you my friend


Quote:
> Satch,
> /x escapes ASCII characters, thus is followed by only two hex digits. Your

sign is \xB1. If you want two,you
Quote:
> should repeat the escape sequence too (i.e. \xB1\xB1).
> There were other syntactical mistakes (I assume it was pseudocode). This
works:


> class=foo2 id=foo3></FONT><FONT class=foo4 id=foo5></FONT><FONT
> class=foo6 id=foo7></FONT>";

> ...

> I assumed you wanted one or more repeats of the sign.
> If it's not exactly what you wanted, please notify.

> --
> Yizhaq Shmaayahoo



- Show quoted text -

Quote:
> > Hi folks. I am helpess in parsing this string... It won't just parse...
the
> > token is hex B1B1 or \xB1B1

> > string innerStuff=<P><FONT class=foo id=foo1>hello</FONT></P><FONT
> > class=foo2 id=foo3></FONT><FONT class=foo4 id=foo5></FONT><FONT
> > class=foo6 id=foo7></FONT>

> > Thanks
> > My code:
> > Regex regx=new Regex("\xB1B1");

> > string [] InnerStuff=regx.Split(innerStuff,5);

> > --
> > *************
> > Best Regards
> > Satch
> > *************



Thu, 07 Oct 2004 04:02:43 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Download Invitation for all coders and non-coders

2. Newbie: separate big .cs file into small .cs files

3. CODER magazine

4. Free New C/C++ CODER Magazine!!!

5. Coders disk set for beginners

6. C coder wanted for a MUD

7. International UNIX Coders Group

8. C coder needed for Role Playing EWtoo style talker

9. new coder with very simple question

10. Coder Wanted - Good Expierence - Star Wars

11. WANTED: CODER FOR FREEWARE PROJECT

12. Coder wanted for socket sub-project

 

 
Powered by phpBB® Forum Software