(?s)\s|/\*.*?\*/
I've tested with ColdFusion 8 and Railo 3.3.
sCSSContent= sCCSContent.ReplaceAll( "(?s)\s|/\*.*?\*/" , "" );
| git init - navigate to the appropriate directory and just type that. | |
| git add . - adds everything in that path | |
| git commit -m 'stuff' - Commits with the message 'stuff' | |
| git branch - views branches | |
| git checkout -b <new branch> - Creates & switches to new branch | |
| git checkout <branch> - switches to branch | |
| git merge <branch> - merges that branch to the existing branch that you're already in. | |
| git branch -d <branch> - deletes branch | |
| git push - This assumes you already have a remote setup (like github) |
| <cffunction name= "storeStructIntoSession" | |
| output= "false" | |
| hint= "I store a form into the session scope"> | |
| <cfargument name= "stTarget" | |
| required= "true" | |
| hint= "I am the target struct for storage." /> | |
| <cfargument name= "sSessionKey" | |
| required= "false" |
Do not run this against minified JavaScript packages. The minified packages often rely on line returns to execute correctly.
This regular expression was designed to minify simple JavaScript.
(?s)[\t\r\n]|[ ][ ]+|/\*.*?\*/*
I put spaces in square brackets as a reminder that they exist. Spaces can be important. For example, $( "#foo #bar" ) should not become $("#foo#bar"). However, we do want to remove spaces if they are used for indentation.
| function CTXNumberFormat( dNumber ) { | |
| dNumber= DecimalFormat( dNumber ); | |
| dNumber= dNumber.ReplaceAll( "(\.0+|\.(\d)0)$" , ".$2" ); | |
| dNumber= dNumber.ReplaceAll( "," , "" ); | |
| dNumber= dNumber.ReplaceAll( "\.$" , "" ); | |
| dNumber= dNumber.ReplaceAll( "^0+" , "" ); | |
| return dNumber; | |
| } |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
| <title>Stripe Getting Started Form</title> | |
| <!-- The required Stripe lib --> | |
| <script type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
| <!-- jQuery is used only for this example; it isn't required to use Stripe --> |