Re: Reg Expression - Get position of

2008-11-26 Thread Duncan Booth
Chris Rebert [EMAIL PROTECTED] wrote: On Wed, Nov 26, 2008 at 1:48 AM, M_H [EMAIL PROTECTED] I have a beginning of a (longer) string who is like: mystr = 'mimetype=text/htmlcontent![CDATA[' or like mystr = 'mimetype=text/html content![CDATA[' or like mystr = 'mimetype=text/html

Re: Reg Expression - Get position of

2008-11-26 Thread Chris Rebert
On Wed, Nov 26, 2008 at 1:48 AM, M_H [EMAIL PROTECTED] wrote: On Nov 25, 11:06 pm, r [EMAIL PROTECTED] wrote: On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote: On Tue, 25 Nov 2008 12:41:53 -0800 (PST), r [EMAIL PROTECTED] wrote: On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote:

Re: Reg Expression - Get position of

2008-11-26 Thread M_H
On Nov 25, 11:06 pm, r [EMAIL PROTECTED] wrote: On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote: On Tue, 25 Nov 2008 12:41:53 -0800 (PST), r [EMAIL PROTECTED] wrote: On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote: Hey, I need the position of the last char Let's say

Re: Reg Expression - Get position of

2008-11-26 Thread Jorgen Grahn
On Wed, 26 Nov 2008 01:48:59 -0800 (PST), M_H [EMAIL PROTECTED] wrote: On Nov 25, 11:06 pm, r [EMAIL PROTECTED] wrote: On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote: ... Depends on if you have an irrational fear of REs or not ... I agree that REs are overused for things which

Reg Expression - Get position of

2008-11-25 Thread M_H
Hey, I need the position of the last char Let's say I have a string mystr = mimetype=text/htmlcontent![CDATA[ I need the posistion of the (second sign) - so I can cut away the first part. The problem is that it can be like but also like or But it is def the quotes and the closing

Re: Reg Expression - Get position of

2008-11-25 Thread Chris Rebert
On Tue, Nov 25, 2008 at 8:36 AM, M_H [EMAIL PROTECTED] wrote: Hey, I need the position of the last char Let's say I have a string mystr = mimetype=text/htmlcontent![CDATA[ I need the posistion of the (second sign) - so I can cut away the first part. The problem is that it can be

Re: Reg Expression - Get position of

2008-11-25 Thread r
On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote: Hey, I need the position of the last char Let's say I have a string mystr =  mimetype=text/htmlcontent![CDATA[ I need the posistion of the (second sign) - so I can cut away the first part. The problem is that it can be like but also

Re: Reg Expression - Get position of

2008-11-25 Thread Jorgen Grahn
On Tue, 25 Nov 2008 12:41:53 -0800 (PST), r [EMAIL PROTECTED] wrote: On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote: Hey, I need the position of the last char Let's say I have a string mystr =  mimetype=text/htmlcontent![CDATA[ I need the posistion of the (second sign) - so I can cut

Re: Reg Expression - Get position of

2008-11-25 Thread r
On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote: On Tue, 25 Nov 2008 12:41:53 -0800 (PST), r [EMAIL PROTECTED] wrote: On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote: Hey, I need the position of the last char Let's say I have a string mystr =