Top

$iscaps


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Sep 28, 2007
Last Updated  Oct 03, 2007
Tags  capital  get  letters  non 

Introduction

This is a simple code that returns the percentage of capital and non-capital letters in a line of text.

For example:

If I were to type: //echo -a $iscaps(III).get it would return %100. If I were to type: //echo -a $iscaps(iII).non it would return %33.3

The syntax is either: $iscaps(string).get or $iscaps(string).non



Grab the Code

Comments

  (2)  RSS
KuTsuM
Comments: 137
 
mIRC Snippet:  $iscaps
Posted on Oct 3, 2007 11:05 pm
Why do you need to declare \"get\"? Good regex example.
KuTsuM
Comments: 137
 
mIRC Snippet:  $iscaps
Posted on Oct 3, 2007 11:06 pm
Ignore the above question: You should use the prop parameter ($prop)

Please Register or Login to start posting comments.
Bottom