Welcome Guest, Not a member yet? Register   Sign In
preg_match help!
#1

[eluser]mparas[/eluser]
Hi guys!

May i ask if how to get this sal_ok in this string sal_ok(new_sal, new_wage)

i have this pattern #\(.+\)#U

but it only returns (new_sal, new_wage)

i want to get the word sal_ok

please help me..
#2

[eluser]DjLeChuck[/eluser]
Hi mparas,

Maybe with this pattern ?

[a-z_]*\(.+\)

I'm not sur...
Can you give your code or explain what you want to do ?
#3

[eluser]InsiteFX[/eluser]
Here is a very nice regex tester online, if you look at the bottom right hand side of the screen you can download a desktop verison!

Regex tester

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB