[RegExp] Match /a(b|c)/ or /(b|c)a/
Posted: Sat Jan 17, 2009 6:38 am
I currently am just writing the subpattern twice, e.g.
Is it possible to do write this without putting the subpattern twice?
Something like pseudo-code: match a at ^ or $ of subpattern.
TIA
Edit: oops, never noticed this forum. Thanks admin
Code: Select all
/a(b|c)|(b|c)a/Something like pseudo-code: match a at ^ or $ of subpattern.
TIA
Edit: oops, never noticed this forum. Thanks admin