TCPDF::setSpacesRE( $re = '/[^Sxa0]/' )

Set regular expression to detect withespaces or word separators.


Description Description

The pattern delimiter must be the forward-slash character "/". Some example patterns are:

 Non-Unicode or missing PCRE unicode support: "/[^\S\xa0]/" Unicode and PCRE unicode support: "/(?!\xa0)[\s\p{Z}]/u" Unicode and PCRE unicode support in Chinese mode: "/(?!\xa0)[\s\p{Z}\p{Lo}]/u" if PCRE unicode support is turned ON ("\P" is the negate class of "\p"):      \s     : any whitespace character      \p{Z}  : any separator      \p{Lo} : Unicode letter or ideograph that does not have lowercase and uppercase variants. Is used to chunk chinese words.      \xa0   : Unicode Character 'NO-BREAK SPACE' (U+00A0) 

Parameters Parameters

$re

(Optional) (string) regular expression (leave empty for default).

Default value: '/[^Sxa0]/'


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.6.016 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.