TeraTech

The ColdFusion Experts: Develop | Secure | Optimize

  • Services
  • About
  • CF Alive
  • Blog
  • Podcast
  • Contact

  • Services
  • About
  • CF Alive
  • Blog
  • Podcast
  • Contact

Regular expression to search for FORM and CFFORM tags

February 23, 2007 By Michaela Light Leave a Comment

Recently I needed to go through a large body of code, checking all forms to be sure they met certain requirements. There was a lot of old ColdFusion code, written by many different people over a period of years. I didn't have one single string to search on, and wanted to find them all in one search.

Solution: I wrote a regular expression that allowed me to search for all <form> or <cfform> tags, regardless of case, using my favorite extended search utility, Homesite's Extended Find.

It's a fairly simple regular expression, but it was a big deal for me because (1) it worked! and (2) I figured out how to write it, so now I know I can write another one when I need it. Here it is:

[<]([cC][fF])?[fF][oO][rR][mM][[:space:]]

For those not familiar with searching by regular expressions in Homesite, it's the same as a normal Extended Find, but you check the box for Regular Expression so it treats your search text as a pattern, not a literal.

If anyone knows how to make the same search work in Dreamweaver or in CFEclipse, would you please post a comment here for everyone? It may be due to different RegEx syntax or other issues, but I'm not sure how to do this outside of HomeSite. Awaiting your reply ....

Related Posts

  • Is Adobe ColdFusion Dead? Programmers and CIOs Often Ask This QuestionIs Adobe ColdFusion Dead? Programmers and CIOs Often Ask This Question
  • Hear Us Roar: A Manifesto for Women and Minorities in Startup, Tech, and Business Communities with Sophia Eng-TranscriptHear Us Roar: A Manifesto for Women and Minorities in Startup, Tech, and Business Communities with Sophia Eng-Transcript
  • TeraTech Development Approach – Prototype/ Front-End DevelopmentTeraTech Development Approach – Prototype/ Front-End Development
  • 067 More you missed from Adobe ColdFusion 10, 11, And 2016 with Charlie Arehart067 More you missed from Adobe ColdFusion 10, 11, And 2016 with Charlie Arehart
  • 002 First Look into the Into The Box Conference with Brad, Luis & Gavin- Transcript002 First Look into the Into The Box Conference with Brad, Luis & Gavin- Transcript
  • Into The Box 2018 Awesome UpdatesInto The Box 2018 Awesome Updates
  • Facebook
  • Twitter
  • LinkedIn

Filed Under: Tips

← Previous Post Mindmapping for better programs
Next Post → TeraTech wins better consulting award from CFDJ magazine fifth year in a row

Popular podcast episodes

  • Revealing ColdFusion 2021 – Rakshith Naresh
  • CF and Angular – Nolan Erck
  • Migrating legacy CFML – Nolan Erck
  • Adobe API manager – Brian Sappey
  • Improve your CFML code – Kai Koenig

CF Alive Best Practices Checklist

 

Modern ColdFusion development best practices that reduce stress, inefficiency, project lifecycle costs while simultaneously increasing project velocity and innovation.

Top articles

  • CF Hosting (independent guide)
  • What is Adobe ColdFusion
  • Is Lucee CFML now better than ACF?
  • Is CF dead?
  • Learn CF (comprehensive list of resources)

Recent Posts

  • Funny ColdFusion Custom Tag Competition (CFML Programmer’s Jokes)
  • Protected: State of the CF Union 2021 Survey Results
  • ColdFusion Development: Less Coding for Faster Turnaround
  • Protected: State of the CF Union 2021 Survey Released
  • ColdFusion Server Crashing – First 3 Steps to Fix it Fast

Categories

  • ActionScript
  • Adobe CF Summit
  • Adobe CF Summit East
  • Adobe CF Summit East 2018
  • Adobe ColdFusion 11
  • Adobe ColdFusion 2020 Beta
  • Adobe ColdFusion 2021
  • Adobe ColdFusion Project Stratus
  • Adobe ColdFusion Security
  • AIR
  • Ajax
  • AngularJS
  • Announcement
  • API
  • Apollo
  • Auto Security Lockdown
  • AWS
  • C#
  • Certification
  • CF Alive
  • CF Alive Book
  • CF Alive Podcast
  • CF Camp
  • CF Developer week
  • CF Maintenance
  • CF Summit India
  • CF Tags
  • CF Training
  • CF Vs. Other Languages
  • CFEclipse
  • CFML
  • CFML Open- Source
  • CFObjective
  • cfquery
  • CFSummit
  • CFUnited
  • China Chopper
  • CIO
  • Classes
  • Client Highlights
  • ColdBox
  • ColdFusion
  • ColdFusion 2018
  • ColdFusion 2020
  • ColdFusion 2021
  • ColdFusion 9
  • ColdFusion community
  • ColdFusion Conference
  • ColdFusion Consulting
  • ColdFusion Developer
  • ColdFusion Development
  • ColdFusion Hosting
  • ColdFusion Roadmap
  • ColdFusion Security
  • ColdFusion Webinar
  • CommandBox
  • Conference
  • Cool Stuff
  • Culture
  • Cybercrime
  • Database
  • Development Approach
  • DevOps
  • Docker
  • Fixinator
  • Flex
  • Frameworks
  • Fusebox
  • FusionReactor
  • Futurology
  • Garbage Collector
  • Google Down
  • Into The Box Latam
  • IntoTheBox Conference
  • Java
  • JavaScript
  • JVM
  • Learn CFML
  • Learn ColdFusion
  • Legacy Code
  • Load Testing
  • Lucee
  • Management
  • MAX
  • MDCFUG Lunch
  • Microsoft Azure
  • Mindmapping
  • MockBox
  • Modernize ColdFusion
  • Monitoring
  • Muracon
  • NCDevCon
  • New Intern
  • News
  • Node.js
  • Open- Source
  • ORM
  • Ortus Developer Week
  • Ortus Roadshow
  • Performance
  • Performance Tuning
  • PHP
  • Productivity
  • Programming Languages
  • Project planning
  • Query of Queries
  • Scalability
  • Security
  • Server Crash
  • Server Software
  • Server Tuning
  • Social Media
  • Spiral Web
  • SQL
  • Success Story
  • Survey
  • Technology
  • TestBox
  • Tips
  • Transcript
  • Trapeze Development
  • Uncategorized
  • Web 2.0
  • Web Application
  • Web Server
  • Webinar
  • Webmail
  • What is ColdFusion?
  • Whole Brain Development
  • Women in Tech
  • Work From Home
  • Home
  • Services
  • About Us
  • CF Alive
    • CF Alive Book
    • CF Alive Inner Circle
    • CF Alive full resources cheatsheet
  • Blog
  • Podcast
    • Podcast Guest schedule
  • Contact
  • Sitemap

The ColdFusion Experts:
Develop, Secure, Optimize

TeraTech Inc
451 Hungerford Drive Suite 119
Rockville, MD 20850

Tel : +1 (301) 424 3903
Fax: +1 (301) 762 8185

Follow us on Facebook Follow us on LinkedIn Follow us on Twitter Follow us on Pinterest Follow us on YouTube

Copyright © 1998–2021 TeraTech Inc. All rights Reserved.