2
votes
3answers
948 views

Better implementation of a simplified regular expression engine?

Task: On an alphabet set [a-z], a simplified regular expression is much simpler than the normal regular expression. It has only two meta characters: '.' and '*'. '.' -- exact one arbitrary ...
5
votes
4answers
179 views

Best way to replace a beginning and end character in Perl using Regular Expression?

I'm wondering if there is a simplier regex I could use in my code to remove the beginning and ending char in a line. Maybe combine some regex's? In this instance, it's a comma at the beginning and ...
1
vote
1answer
263 views

Improve on Regex replacing classnames

I am working on a small script for a mobile site. Is there any way to improve on the regex here? or remove it completely? function fn_page_change(event) { event.preventDefault(); var ...