inseide $this->content [contains html code]
===================================
token
/* HINTS : hint 1*/
import java.io.*;
class IOTest {
public static void main (String[] args) {
try{
BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
String response;
System.out.println ("What is your favorite programming language?");
response = stdin.readLine();
System.out.println ("You have great taste. " + response + " is a great language");
}catch(IOException ioe){
// ioe
}
}
}
token
===================================
i would like to replace all content between token to a word "replaced"
ereg_replace("^token(.*)token$", "replaced", $this->content);
however it won't work !! I think my regexp is worng !
anyone can fix this problem?
expected outcome
===================================
replaced
===================================
thx