Jump to content

need help releated to preg_match

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
z0mg

z0mg

    Newbie

  • Members
  • Pip
  • 5 posts
preg_match('/onkeyup="storeCaret(this);">[quote name='XYZ'](.*)[\/quote]<\/textarea>/',$r12esult,$v2ia);

ummm am trying to match that from $r12esult ... but not getting anything.... :( anyonce can help? :D

#2
exile

exile

    Newbie

  • Members
  • PipPip
  • 14 posts
i think you must escape chars like [,],"...

#3
z0mg

z0mg

    Newbie

  • Members
  • Pip
  • 5 posts
nd how to do that :| sorry nubish ques

#4
exile

exile

    Newbie

  • Members
  • PipPip
  • 14 posts
/onkeyup=\"storeCaret(this);\">\[quote name='XYZ\'](.*)\[\/quote\]<\/textarea>/

but i don't know if it is that the problem, i've never used regexps in php ;/

#5
z0mg

z0mg

    Newbie

  • Members
  • Pip
  • 5 posts
not working :(

#6
exile

exile

    Newbie

  • Members
  • PipPip
  • 14 posts
show bigger context

#7
z0mg

z0mg

    Newbie

  • Members
  • Pip
  • 5 posts
 <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">[quote name='"xyz"'](.*)[\/quote]<\/textarea>

?

#8
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Perhaps if you posted what you are trying to match, someone would be able to help you.

#9
z0mg

z0mg

    Newbie

  • Members
  • Pip
  • 5 posts
i ve already fixed it :D thanks anywayz :D