我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Php Regex介于文本之间不起作用

I´m getting data with

$newtext = fread($rcon, 102400);

But this script is not working

$offset = stripos($newtext, 'ÿ');

But if i print it i could see the y

EYî ÿ5aa68

Why is it not working? Its kind of wired.. Because .. It is there..^^

Thanks for your help and time :)

$answer .= preg_replace ('/(BE.*?)ÿ/' , '' , $newtext);

or if you only want to remove between codes:

$answer .= preg_replace ('/BE(.*?)ÿ/' , '' , $newtext);

You can play tested here (expand SUBSTITUTION TAB): http://regex101.com/r/tO1aB8/1

近期文章

  • CURL:发布表单并从bash获取数据
  • 声明变量时未定义的索引
  • 如何计算某个数据库表中的列+更多并在网站上显示(使用php)
  • crawler-script中的500内部服务器错误
  • 如何在CakePHP中正确执行此路由?
  • Wordpress静态首页搜索分页
  • php文件中的锚点链接指向index.html
  • Joomla / Jomsocial包括core.php
  • (Javascript)将光标位置传递给模态窗口
  • 使用php从外部加载javascript文件
  • 在这些表上使用雄辩的常规方法
  • 将id从一个表单传递到另一个表单并插入另一个表
  • 如何检测Paypal快速结账时资金不足?
  • 获取空白屏幕,日志中没有任何内容 这是Php语法和Apache问题吗?
  • 如何通过ajax加载模态
  • 删除小部件时请注意
  • 将行添加到另一行
  • 如何分解用逗号分隔的多个单词并检查它们
  • php页面的jscript代码
  • UTF-8编码的字节顺序标记

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华