PDA

View Full Version : parsers on the web


paulmelvin10
03-13-2002, 10:18 AM
I am currently doing a web project(using ASP) but part of it involves
parsing certain information. It is a programmng language tutorial on the web and i want to be able to parse some java strings like java variables, declarations and so on. i want to put them in a quiz like state, where i say please type in a java variable here using these conditions and then i have to say whether it is correct or not. any ideas? it does not need to do anyhting, just say if the syntax is correct.
any theories would be accepted. i am doing it through Windows2000.
thank you.

dj4uk
03-15-2002, 03:16 AM
Try using the RegExp function in VBScript or JavaScript.

paulmelvin10
03-19-2002, 04:53 PM
how does that work.
any clues on a bit of format

dj4uk
03-20-2002, 02:53 AM
RegExp (or regular expressions) is used for pattern matching. With this you can parse things to check the format is correct. However they are quite complex to explain here and I'd recommend that you do a google search for regexp or regular expressions for full notation for it.