php - Regular Expressions - Match inside a Match -


i trying find way match inside match. still reading oreilly's book on regular expressions, have now:

i need values inputs inside form. page contains multiple forms, similar this:

type="checkbox" value="([^"])" 

but need target checkbox values inside specific form. using preg_match way.

p.s. know form preg_match first, , match inside result, i'm wondering how in regex.

preg_match("|type=\"checkbox\" value=\"(.*?)\"|"); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -