Solved

Coldfusion String Manipulation

Posted on 2011-02-24
2
314 Views
Last Modified: 2012-05-11
I'm not really a coldfusion guy - but I've inherited a bunch of coldfusion sites to maintain.

On one site - I'm going to be posting from a form to a function that needs to analyze the posted fields.

Essentially - what I want the function to do is determine "Are the first two characters numeric?"

So, if the post is 32aeoigoega, 54aoieghiaeg or 93aoeigea - it will validate as true...but ae135890135 would validate as false.

What would the script for that be like in CF?  500 points to anyone who can keep me from having to read a coldfusion reference manual.
0
Comment
Question by:erzoolander
2 Comments
 
LVL 19

Accepted Solution

by:
Jones911 earned 500 total points
ID: 34974794
<cfif isNumeric(left(theStringVariable,2))>
   true
<cfelse>
  false
</cfif>
0
 
LVL 1

Author Closing Comment

by:erzoolander
ID: 34975074
Gracias!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question