?
Solved

Coldfusion String Manipulation

Posted on 2011-02-24
2
Medium Priority
?
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

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

Author Closing Comment

by:erzoolander
ID: 34975074
Gracias!
0

Featured Post

Give Your Engineering Team a Productivity Boost

Learn why container technology is so powerful and how it can provide your team with productivity gains and other benefits.

Question has a verified solution.

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

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 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