楼主: sdf3uinrre5
2421 1

[求助]谁能给讲讲RXPARSE 函数以及其中$-的意义HE [推广有奖]

  • 0关注
  • 0粉丝

初中生

47%

还不是VIP/贵宾

-

威望
0
论坛币
71 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
164 点
帖子
25
精华
0
在线时间
0 小时
注册时间
2007-6-17
最后登录
2009-11-22

楼主
sdf3uinrre5 发表于 2007-6-19 11:11:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
那位大侠能给讲讲RXPARSE 函数以及其中$-的意义???
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:RXPARSE ARS 求助 函数 RXPARSE

回帖推荐

bakoll 发表于2楼  查看完整内容

The RX set of functions and CALL routines have been removed from the documentation. They have been replaced by a set of PRX functions and CALL routines, which have been available in previous versions of SAS, and which provide superior functionality. The following table lists the RX functions and CALL routines and their PRX replacements: RX Function PRX Replacement CALL RXCHANGE CALL PRXC ...

本帖被以下文库推荐

沙发
bakoll 发表于 2015-6-9 21:36:25
The RX set of functions and CALL routines have been removed from the documentation. They have been replaced by a set of PRX functions and CALL routines, which have been available in previous versions of SAS, and which provide superior functionality.

The following table lists the RX functions and CALL routines and their PRX replacements:

RX Function PRX Replacement
CALL RXCHANGE CALL PRXCHANGE
CALL RXFREE CALL PRXFREE
CALL RXSUBSTR CALL PRXSUBSTR
RXMATCH PRXMATCH
RXPARSE PRXPARSE


Examples


The following example uses metacharacters and regular characters to construct a Perl regular expression. The example parses addresses and writes formatted results to the SAS log.

data _null_;
   if _N_ = 1 then
   do;
      retain patternID;

         /* The i option specifies a case insensitive search. */
      pattern = "/ave|avenue|dr|drive|rd|road/i";
      patternID = prxparse(pattern);
   end;

   input street $80.;
   call prxsubstr(patternID, street, position, length);
   if position ^= 0 then
   do;
      match = substr(street, position, length);
      put match:$QUOTE. "found in " street:$QUOTE.;
   end;
   datalines;
153 First Street
6789 64th Ave
4 Moritz Road
7493 Wilkes Place
;

The following lines are written to the SAS log:

   "Ave" found in "6789 64th Ave"
   "Road" found in "4 Moritz Road"
stay hungry stay foolish

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-5 17:15