Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
I don't know the regex method (which would be easier), but $replace is easy. hint2 or hint3 could simply be:
$replace(%answer,b,*,c,*,d,*,f,*,g,*,h,*,j,*,k,*,l,*,m,*,n,*,p,*,q,*,r,*,s,*,t,*,v,*,w,*,x,*,z,*)
Yeah, it looks bad, but I don't know regex to do it that way for you. It does work, though. To leave your first hint(s), since they are the beginning letters, you can do:
$left(%answer,3) $+ $replace($right(%answer,-3),b,*,c,*,d,*,f,*,g,*,h,*,j,*,k,*,l,*,m,*,n,*,p,*,q,*,r,*,s,*,t,*,v,*,w,*,x,*,z,*)
That will show the first 3 characters and all of the vowels. Again, it might not look nice, but it works.
Invision Support #Invision on irc.irchighway.net
|