functions to get decorative/informative text out of strings...
|
spacestart(str1)
returns all the whitespace from the start of the string |
source code
|
|
|
spaceend(str1)
returns all the whitespace from the end of the string |
source code
|
|
|
puncstart(str1,
punctuation)
returns all the punctuation from the start of the string |
source code
|
|
|
puncend(str1,
punctuation)
returns all the punctuation from the end of the string |
source code
|
|
|
ispurepunctuation(str1)
checks whether the string is entirely punctuation |
source code
|
|
Boolean
|
|
|
findaccelerators(str1,
accelmarker,
acceptlist=None)
returns all the accelerators and locations in str1 marked with a
given marker |
source code
|
|
|
findmarkedvariables(str1,
startmarker,
endmarker,
ignorelist=[ ] )
returns all the variables and locations in str1 marked with a given
marker |
source code
|
|
|
getaccelerators(accelmarker,
acceptlist=None)
returns a function that gets a list of accelerators marked using
accelmarker |
source code
|
|
|
getvariables(startmarker,
endmarker)
returns a function that gets a list of variables marked using
startmarker and endmarker |
source code
|
|
|
getnumbers(str1)
returns any numbers that are in the string |
source code
|
|
|
getfunctions(str1,
punctuation)
returns the functions() that are in a string, while ignoring the
trailing punctuation in the given parameter |
source code
|
|
|
getemails(str1)
returns the email addresses that are in a string |
source code
|
|
|
|
|
countaccelerators(accelmarker,
acceptlist=None)
returns a function that counts the number of accelerators marked with
the given marker |
source code
|
|