个为高人看过来啊~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

anonimousboy 2003-05-07 08:56:11
我有两句字符串,一个里边含有变量的名字,而且变量都是以@开头,后边跟的都是数字.

另一个呢,则是把这些变量用值已经替换过了,我想把这些变量的值取出来.如何取?如果做正则表达啊??

例如:@1我想我是@2海,这是个@3实验@4

替换后的为:123我想我是234海,这是个345实验哈哈

我想把:123,234,345,哈哈 取出来,保存到一个数组里~~~
...全文
76 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyinger2 2003-05-11
  • 打赏
  • 举报
回复
This format is named STDOUT_TOP, and will be used initially at the first invocation of the STDOUT format, and again every time 60 lines of output to STDOUT have been generated. These column headings line up with the columns from the STDOUT format, so everything comes out tidy.

The first line of this format shows some constant text (Page) along with a three-character field definition. The following line is a field value line, which in this case has one expression. This expression is the $% variable,[19] which holds the number of pages printed - a very useful value in top-of-page formats.

flyinger2 2003-05-11
  • 打赏
  • 举报
回复
呵呵!
不是高手,up 一下!

37,743

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧