|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (3 bit)
Join Date: Mar 2002
Location: ireland
Posts: 5
|
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. |
|
|
|
|
|
#2 |
|
Member (10 bit)
|
Try using the RegExp function in VBScript or JavaScript.
|
|
|
|
|
|
#3 |
|
Member (3 bit)
Join Date: Mar 2002
Location: ireland
Posts: 5
|
how does that work.
any clues on a bit of format |
|
|
|
|
|
#4 |
|
Member (10 bit)
|
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|