Hi,

for example;

var p:RegExp = /<link\b[^>]*>(.*?)<\/link>/gi;

(.*?) is group $1

OR

var p:RegExp = /<([link])\b[^>]*>(.*?)<\/([link])>/gi;

$1 ([link])
$2 (.*?)
$3 ([link])

In the order the groups are processed.

String.replace() uses them. Check the docs for more info on groups.

Peace, Mike

On 1/23/07, Webdevotion <[EMAIL PROTECTED]> wrote:

  That's exactly what I needed!

How do you call the $1 technique?

Groups ?

Thanks Mike !



--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to