in reply to Help with placing the matches of a regex into an Array
Your pattern will never match more than once, due to the greedy .+. I suggest to use
as your pattern match./onclick="document\.location\.href='([^']+)'"/g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with placing the matches of a regex into an Array
by stevieb (Canon) on Apr 28, 2012 at 20:39 UTC | |
by JavaFan (Canon) on Apr 28, 2012 at 20:47 UTC | |
by stevieb (Canon) on Apr 28, 2012 at 20:57 UTC |