Hi all,
I'm using the RealView MDK-ARM with the RealView Realtime Libary. At the moment I'm working on building a small embedded webpage for the MCB2300.
Everything works fine, but the fcarm tool used to create the small filesystem that holds the files for the webserver, might need an improvement.
I have the problem that I'm using javascript in the HTML files. So have lines off text with backslashes like:
... t if(ValueString.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}&/ t { t alert("IP matches format\n"); t } t else t { t alert("IP doesn't matches format\n"); t } ...
The fcarm already maskerades the " with \". But it doesn't do it with \. So I have to mask the \ manually with \\ like in the following example.
... t if(ValueString.match(/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}&/ t { t alert("IP matches format\\n"); t } t else t { t alert("IP doesn't matches format\\n"); t } ...
I think such an improvment would be easy to implement. Why isn't it already implemented?
Rainer