Parse text for form elements

I have a chunk of text which I am reading from the database which contains html. I need to pull all of the form elements from this text. Is there any cleaner way of doing this than looking for every combination of upper/lowercase form element tags? I don't want to have to look for all of these...

<input>, <Input>, < input>, <select> < Select>, < select> < select> etc

[426 byte] By [jamesellis22a] at [2007-10-2 20:09:18]
# 1
I would use an HTML parser for that sort of task. But if you're planning to use plain old String methods for breaking the file apart, two of the methods you might consider are toUpperCase() and toLowerCase().
DrClapa at 2007-7-13 22:49:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...