Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regular expression characters

#### ? designates an optional group. It can appear once or not at all 
RegEx = re.compile(r'(good)?bye')

mo = RegEx.search("bye bye bye")
mo.group()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regular #expression #characters
ADD COMMENT
Topic
Name
1+8 =