no, not at all what I am saying. You can try this...

new RegExp("^(<.*>)?" + inputText.text,"i\*")

This should ignore any html tag at the beginning if it exists. I am
not an expert at regular expressions so this might fail some test cases.

--- In [email protected], "tonyx_788" <[EMAIL PROTECTED]> wrote:
>
> are you saying there is no way to start a filter search after the <b>
> tag? without typing it first
> 
> 
> --- In [email protected], "Paul DeCoursey" <paul@> wrote:
> >
> > --- In [email protected], "tonyx_788" <tonyx_788@> wrote:
> > >
> > > Hi all i'm looking for a regular expression for mi app
> > > 
> > > im using CDATA inside my XML so when i try to make a filter
search it
> > > wont work cause of the <B> or <i> before the text
> > > 
> > > lets say in my xml i have something like this:
> > > <name><![CDATA[<b>Academia.</b>]]></name>
> > > it dont work if i type academia but
> > > if i put <b>Academia it works
> > > 
> > > this is what im using to make the filter search
> > > 
> > >  private function filter(item:Object):Boolean
> > >                   {
> > >   return item.name.match(new RegExp("^" + inputText.text,"i\*"));
> > >                   }
> > > 
> > 
> > "^" searches from the beginning of the string, so of course it will
> > not find it since <b> is the beginning of your string.
> > 
> > > Thanks
> > >
> >
>


Reply via email to