I'm trying to match a string with Pattern/Matcher. I want to extract sub string from a string. could anybody give me the solution to match the following sub string?
<!-- if(Rajendra Patel == 'Rajendra Patel'){
---
<br />
User Name : Rajendra Patel
<br />
Organization Name : VersatileCapitalist Software Inc
<br />
Date : 27/01/2015
<br />
Time : 5:15 PM
<br />
Date Time : 27/01/2015 5:15 PM
<br />
Year : 2015
<br />
Month : 1
<br />
Next Day(Tomorrow): 28/01/2015
<br />
LastDay(Yesterday) : 26/01/2015
<br />
} -->
The following regular expressions is working fine in javascript and java but it is not working in apex.
working in javascript:
<!([-]*)(\s+)(If|if)(?:\n|.)*\}\s-->
Not working in apex:
<!([-]*)(\\s+)(If|if)(?:\\n|.)*\\}\\s-->