Find text within other text in Vortex

Post Reply
steffler
Posts: 4
Joined: Tue Oct 07, 2003 12:14 pm

Find text within other text in Vortex

Post by steffler »

In Perl you can simply do:
if ($var =~ /text/) { contains text }
else { doesn't contain text }

All the online info only deals with regular expressions as part of an SQL like statement.

I'm not in an SQL context so how would Vortex handle it?
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Find text within other text in Vortex

Post by John »

For regular expressions the most common method is <rex $pattern $var><if $ret neq ''>$ret was a match<else>No match</if>

The <if> statement knows all the SQL operators, so you can say:

<if $var like $query>
John Turnbull
Thunderstone Software
Post Reply