Re: [Clip] Re: Find with Regex
If you remove the S-option you may see if the regex finds a match.
Does this work?
^!Find <(?s)meta content="ABET.*?> RITWS
^!Prompt  ^$GetHtmlTagAttr("^$GetSelection$";content)$ ^$GetHtmlTagAttr("^$GetSelection$";name)$
From: c.brito78 <c.brito78@...>
Sent: Sunday, September 6, 2009 11:44:07 PM
Subject: [Clip] Re: Find with Regex
Do not worked, to get the entire description tag.
The description tag are very standard:
<META content="Abet International Business export import distance course international online International Trade Management "
Prompt  are only a message to me, because ntp do not have the line number to be used in a clip, therefore normally I use the , 33 es the line number.
There exist other way?
Thanks again !!!!
--- In ntb-clips@yahoogrou ps.com, Hugo Paulissen <hugopaulissen@ ...> wrote:
> > What are the error with this?:
> > ^!Find "<META(?s)=" Abet(.*?) name=description >" RTIWS
> > ^!Set %description% =^$GetSelection$
> > ^!Prompt  ^%description%
> > I do not get any text. Naturally, I want to pickup the description tag.
> What you are passing to the description variable seems to be the copmplete tag. Does the ^!Find really results in a selection on screen? I'm not sure if the construction of your tag is okay, but if it is you could consider using the appropriate function...
> ^!Find "<meta.*description .*?>" RTIWS
> ^!Info ^$GetHtmlTagAttr( "^$GetSelection$ ";description) $
> BTW: I'm not familiar with the ^!Prompt  construction.
> [Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]