[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

Coldfusion String Manipulation

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
erzoolander
Asked:
erzoolander
1 Solution
 
Jones911Commented:
<cfif isNumeric(left(theStringVariable,2))>
   true
<cfelse>
  false
</cfif>
0
 
erzoolanderAuthor Commented:
Gracias!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now