This book is a must-own:

http://www.amazon.com/Mastering-Regular-Expressions-Jeffrey-Friedl/dp/0596528124/ref=pd_bbs_sr_1/002-1529781-6061612?ie=UTF8&s=books&qid=1173895819&sr=8-1

GL!
Alex

  ----- Original Message ----- 
  From: tonyx_788 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, March 14, 2007 1:51 PM
  Subject: [flexcoders] Re: Regexp wont work cause of the <b> labels


  Thank you very much, im new in regexp is there any web or tutorial to
  learn more about it?

  THX

  --- In flexcoders@yahoogroups.com, "Paul DeCoursey" <[EMAIL PROTECTED]> wrote:
  >
  > 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 flexcoders@yahoogroups.com, "tonyx_788" <tonyx_788@> wrote:
  > >
  > > are you saying there is no way to start a filter search after the <b>
  > > tag? without typing it first
  > > 
  > > 
  > > --- In flexcoders@yahoogroups.com, "Paul DeCoursey" <paul@> wrote:
  > > >
  > > > --- In flexcoders@yahoogroups.com, "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