If I'm reading you right, you want the *first* part of String2 to match
the entirety of String1...?
If so, you could use the Left() function, i.e.
<cfif Len(string2) GE Len(string1) AND Left(string2, Len(string1)) IS
string1>
match
</cfif>
If you're just looking to see if String1 is *in* String2, anywhere...
FindNoCase(String1, String2) would suffice.
--Scott
Priya Koya wrote:
> Hi Charlie,
>
> This post is like long time ago .. but I also have a similar problem for
> comparision.
> Let me usse the same example:
> String1: 0010as10000
> String2: 10as1 .. this was solved using rereplace() but what if I actually
> need something like this.
>
> String1: 10as1
> String1: 10as10000121abc or 10as1abc or 10as1121 should be equal
>
> or
>
> String1: abc201
> String1: abc20101 or abc201abc or abc20101dc or abc201dc01 should be equal
>
> It means that the string1 charecters should exactly match with String2 but
> string2 can have equal or more charecters than string1.
>
> Thanks in Advance,
> Priya
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322279
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4