FALCONSEYE
Programmer
I have a string which has [something]|Somehere ....
i want to get the value between [ and ] which is something. so, i tried using
<cfset kPos = RefindNoCase("[",myString,1)>
<cfset k2Pos = REFindNoCase("]",myString,kPos+1)>
to get the positions of the [ and ]. however the above code throws an error
Malformed regular expression "[".
Reason: Unmatched [] in expression..
how can i accomplish this? thanks
i want to get the value between [ and ] which is something. so, i tried using
<cfset kPos = RefindNoCase("[",myString,1)>
<cfset k2Pos = REFindNoCase("]",myString,kPos+1)>
to get the positions of the [ and ]. however the above code throws an error
Malformed regular expression "[".
Reason: Unmatched [] in expression..
how can i accomplish this? thanks