This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

regexp and vars

Old posts that have not been replied to for several years.
Locked
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

regexp and vars

Post by Papillon »

Is it possible to make a regexp with vars? ... call upon vars in the expr..
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I think a better discription is required to answer this.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

hehe :) sure
is it possible to do this:

regexp -all "$var blablabla..etc $var" $var

I've tried different ones but all I get is differebt errors ;)
it's within a loop and the vars will be different each time.... the loop will be executed about 1500 times and all the vars will be valid numbers only.
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

That still doesn't give me an idea of what you are trying to do!

Give an example of the loop, what goes into it, and what comes out of it.

The regexp command you gave was not even complete.`
Locked