Regular Expression:
(?i)#(.+)
Python Code:
import re
subject = 'http://www.regexcookbook.com#top'
regobj = re.compile(r'(?i)#(.+)')
match = regobj.search(subject)
if match:
print match.group(1)
Regular Expression:
(?i)#(.+)
import re
subject = 'http://www.regexcookbook.com#top'
regobj = re.compile(r'(?i)#(.+)')
match = regobj.search(subject)
if match:
print match.group(1)