PDA

View Full Version : Use RegEx to Parse through Text


bruce
04-24-2003, 03:39 AM
I am not sure I understand you but if I guess right, you want to change the session variable everytime someone click a button on perform an action.

You can set the Session Var just as you set a local variable.


[b]quote:Originally posted by jordnlvr

I am passing a string from a Session(variable) and I need to run a regex function to find all values that meet the requirement Regex("104[0-9][0-9][0-9][0-9][0-9][0-9][0-9]")
I can do this and find the values and print them to the page, but what I want to do is find them in the Session(variable) and reformat each instance using a formula. I am sure this is easy, I just can't seem to figure it out. Anyone have an idea how, if the user clicks a button, could this be run on the Session(variable) and change the value of each instance based on a formula??

KdS
</blockquote id="quote"></font id="quote">

jordnlvr
04-24-2003, 06:44 AM
I am passing a string from a Session(variable) and I need to run a regex function to find all values that meet the requirement Regex("104[0-9][0-9][0-9][0-9][0-9][0-9][0-9]")
I can do this and find the values and print them to the page, but what I want to do is find them in the Session(variable) and reformat each instance using a formula. I am sure this is easy, I just can't seem to figure it out. Anyone have an idea how, if the user clicks a button, could this be run on the Session(variable) and change the value of each instance based on a formula??

KdS