Hi List,
I'm filtering my loaded XML with RegEx (regular expressions). The
input i filter on is in a textfield. So I have a textfield on the
stage and match that to the text in my XML.
Right now i have a pattern the allows me to search only lowercase, but
since all the names in my xml start with a capital i have a problem.
This is my pattern:
var regObj:RegExp = new RegExp( "^.*[[:upper:]a-z].*"+
searchField_txt.text +".*" );
My xml consist of country names, Andorra, Angola, Anguilla, Cuba,
Cyprus, Denmark etc.
What I want to do is this; when i type: an it returns a list of
Andorra, Angola, Anguilla. But when i type in an extra g, so now the
word in my textfield becomes: "ang" it should return the list Angola,
Anguilla. The pattern i have works a bit, but not quite. And my
knowledge of RegEx is only exsisting since this morning. So what i
want the RegEx to do is allow me to search the text, no matter if i
type in lower-/uppercase and in the correct order.
Is there a RegEx rockstar who can help me on this?
Thanks in advance,
Sidney de Koning
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders