;PDGREPPE Sample Pattern Definitions

;Intelligence Services, GPO Box 9, Adelaide SA 5001, AUSTRALIA
;Copyright (c) 1996 (1416 A.H.)

;word start

word		<\W+>
non_word_seq	[^\W]+
repeated_word	(@word)@non_word_seq{=0&#0}
;case insensitive
repeated_wordi	:i@rep_word:o

;word end

;case sensitive start

cap_word	<\u\W*>
all_cap_word	<\u+>
all_low_word	<\l+>

cap_name	<\u\l*>

month_start	{\
<Jan|\
<Feb|\
<Mar|\
<May|\
<Apr|\
<Jun|\
<Jul|\
<Aug|\
<Sep|\
<Oct|\
<Nov|\
<Dec\
}

tri_letter_month	@month_start>

number123_names		<one>|<two>|<three>
number_names		@number123_names|<four>|<five>|<six>|<seven>|<eight>|<nine>|<ten>

day_start		<mon|<tue|<wed|<thu|<fri|<sat|<sun
tri_letter_day		@day_start>

complete_day		{<mon|<tues|<wednes|<thurs|<fri|<satur|<sun}day

;case sensitive end

;case insensitive start

i_month_start	:i@month_start:o

i_tri_letter_month	:i@tri_letter_month:o

i_number123_names	:i@number123_names:o
i_number_names		:i@number_names:o

i_day_start		:i@day_start:o
i_tri_letter_day	:i@tri_letter_day:o

i_complete_day		:i@complete_day:o

;case insensitive end

;number sequences start

numseqpat	{-|\+}?[\d]+
nseq		@numseqpat
floatpat	{-|\+}?{[\d]+\.[\d]*|[\d]*\.[\d]+}
flot		@floatpat
exponpat	{@floatpat|@numseqpat}[eE]{@floatpat|@numseqpat}
expon		@exponpat
moneypat	{-|\+}?[\d]*\.[\d][\d]{[\d]!&[eE]!}
mony		@moneypat

;number sequences end

;DOS Batch file parameter Equivalents start

@CommaChar	,
@CC		,
@SemiColonChar	;
@SCC		;
@EqualChar	=
@EQC		=

;DOS Batch file parameter Equivalents end

AdvBy1OfAnyUpTo PARAM {{PARAM}!.}*:aPARAM

;USED for readme.exe of PC TEXTOOLS start

Consonant		[\C]
NotConsonant		[^\C]
ConsonantNotUpper	[\C^\u]

;Magic Characters are any of : [^$[].(){}<>#%+*?!&|`'@:,]

;Valid as a literal string only if NOT using option -E
MagicCharsEscaped	\[\^\$\[\]\.\(\)\{\}\<\>\#\%\+\*\?\!\&\|\`\'\@\:\,\]

;Valid as a literal string only if using option -E
MagicChars		[^$[].(){}<>#%+*?!&|`'@:,]

;SimpleLowerCaseWords
SLCW	<[a-z]+>

;my favourite fruits
fruit	apple|\
	orange|\
	banana

;lunch time!	I will have it on Rye bread please

bread	type	I will have it on type bread please

;USED for readme.exe of PC TEXTOOLS end