in reply to is there an easy way to dumb down this regular expression for me?
As for dumbing it down, I'd rewrite it like so:
Then you can use it in the following manner: $string =~ /^\s*($rx)\s*$/.$A_rx = qr{ \Q $A }x; $w_rx = qr{ \Q $w }x; $rx = qr{ $A_rx \s* \*? \s* cos \s* (?: \( \s* $w_rx \s* \*? \s* t \s* \) | $w_rx \s* \*? \s* t \s ) \s* A }x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: is there an easy way to dumb down this regular expression for me?
by diotalevi (Canon) on Oct 19, 2005 at 20:42 UTC | |
|
Re^2: is there an easy way to dumb down this regular expression for me?
by moltar512 (Sexton) on Oct 19, 2005 at 20:48 UTC | |
by davidrw (Prior) on Oct 19, 2005 at 21:35 UTC |