Below are snippets for kvj86210.
6
Create a regular expression pattern matching any positive number that is less than or equal to the given max number
Example:
pattern = createRegExNumberPattern( 950 )
print pattern
([0-8]\d\d)|(9[0-4]\d)|(950)
Example:
pattern = createRegExNumberPattern( 950 )
print pattern
([0-8]\d\d)|(9[0-4]\d)|(950)
6
A set of routines to convert between capitalization styles and a format that can be shown to an end user. Probably the first Windows Powershell snippet submitted.
Examples:
CounterClockwise --> Counter Clockwise
FOOLISH_MORTALS --> FoolishMortals
FasterThanLight --> FASTER_THAN_LIGHT
Examples:
CounterClockwise --> Counter Clockwise
FOOLISH_MORTALS --> FoolishMortals
FasterThanLight --> FASTER_THAN_LIGHT









