On a JSP page i have i display the results of and sql query from a MySql db. The problem is that one of the table rows contains a string that may contain regex elements, that are use by a non application for string matching.
the problem is that i dont want to display these regex elements on the web page.
For example, the regex string stored in the db could be "test\s+string"
The string i want to display on the web page is "test string"
So in essence what i i'm trying to do is replace "\s+" with " ".
I know how to do this fine in ASP using vbscript and jscript but i'm confused as to how to achieve the same effect in a JSP page.
heres an example of the code i'm using at the moment to display the results (with the code in red i need to change):
<sql:query var="regexString">
SELECT id, matchstring FROM myDB
</sql:query>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>ID</td>
<td>String</td>
<tr>
<c:forEach var="row" items="${regexString.rows}"
<tr>
<td width="129" align="center" >
<c:out value="${row.ID}"/>
</td>
<td width="129" align="center" >
[COLOR=red] <c:out value="${row.matchstring }"/>[/COLOR]
</td>
</tr>
</c:forEach>
any ideas