cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

searching a paste buffer

ptc-1123085
1-Newbie

searching a paste buffer

Is there a way to search a paste buffer? I would like to determine if the paste buffer contains a certain tag and then add special processing if that tag is found (in a paste callback).

Thanks!

- karen dL.

1 REPLY 1

Nevermind. I figured out that I could copy the paste buffer to a named buffer and then use substr to find what I was looking for.

buffer_clipboard_contents($paste_block);

$rel_block = substr($paste_block, 2, 18);

Announcements