7.1
Table Of Contents
- Table of Content
- Overview
- Understanding PrintShop Mail Web
- Getting Started
- The PrintShop Mail Web Interface
- Publishing Workflow
- Ordering Workflow
- New Document
- Order Manager
- Checkout
- Companies
- Users
- Publication Types
- Collections
- Settings
- About
- License
- Roles
- Languages
- Web Design
- Maintenance
- Settings
- Currencies
- Tax Rates
- Shipping Rates
- Calendar
- Production Settings
- User Input Field Defaults
- Output Folders
- Job options
- Printers
- E-mail Settings
- E-mail Addressees
- Managing E-mail Templates
- Modules Settings
- Enabling a MIS connector
- Installed modules
- Properties
- Enabling a Print Production connector
- Installed modules
- Properties
- Requirements
- Configuring the module
- The PayPal Sandbox
- Processing orders
- Requirements
- Configuring the Authorize.net module
- Test mode
- AVS and CCV checks
- Payment page
- Requirements
- Requesting a test account
- Configuring the iDEAL test dashboard
- Configuring the iDeal module
- Requirements
- Configuring the Moneris module
- Test mode
- Requesting a live account
- AVS and CVD checks
- Payment page
- Add a new Module
- Configure a module
- Delete a Module
- XML (eXtensible Markup Language)
- Options
- Sample POST receive script
- Interaction With PrintShop Mail Design
- Introduction to Regular Expressions
- Introduction
- Skinning Guide
- Getting started
- Creating your own skin
- The template file
- HMTL Outline
- Styling
- Key Concepts
- Style organization
- Header
- User information
- Menu bar
- Background
- Overview tables
- Edit forms
- Sub menus
- Special variables
- Variables for template files
- Variables for style files
- Creating page exceptions
- Creating a page specific template file
- Modifying a page specific template file
- DOM manipulation using jQuery
- Launching code on Document Ready
- Populating fields with computed values
- Removing elements from the DOM
- Adding information to the DOM
- Customizing the store front
- Storefront class
- Creating a hierarchical tree
- Adding a live search option
- Copyright Information
- Index
Examples
The following examples may be useful.
Only numbers
The following regular expression accepts only numbers as input:
[0-9]+
The expression step by step:
l [0-9] Numbers 0 through 9
l + one or multiple
Dutch zip code
The Dutch zip code consists of four numbers, one space and two uppercase letters (eg 1234 AB).
[0-9]{4}\s[A-Z]{2}
The expression step by step:
l [0-9]{4} Four numbers
l \s a single space ("" or [] or \s)
l [A-Z]{2} Two uppercase characters
Canadian zip codes
Canadian postal codes alternate between letter and number such as L0S 1E0. Some choose not to put in the space. And not
every letter is used as the first letter which designates region. The regions are (from east to west, then north):
A,B,C,E,G,H,J,K,L,M,N,P,R,S,T,V,X,Y.
\s*[a-ceghj-npr-tvxyA-CEGHJ-NPR-TVXY]\d[a-zA-Z](\s)?\d[a-zA-Z]\d\s*
The expression step by step:
l \s* Zero or more whitespaces
l [a-ceghj-npr-tvxyA-CEGHJ-NPR-TVXY] The regions letters
l \d One digit
l [a-zA-Z] One letter
l (\s)? Zero or one whitespace
l \d One digit
l [a-zA-Z] One letter
l \d One digit
l \s* Zero or more whitespaces
Introduction to Regular Expressions
©2010 Objectif Lune Inc - 193 -