Ticket #32149

Issue of regular expression.

Open Date: 2013-09-30 13:56 Last Update: 2013-10-11 07:07

Reporter:
Owner:
Type:
Status:
Open [Owner assigned]
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

Forward matching symbol of regular expression does not work out.
正規表現の前方一致記号がうまく動作しません。

e.g.)
Input text
ABC123
123ABC

script
/^ABC/ { print $0;}

All two rows are printed.
2行とも出力されます。

Ticket History (3/3 Histories)

2013-09-30 13:56 Updated by: toudate
  • New Ticket "Issue of regular expression." created
2013-10-11 06:45 Updated by: y-moriguchi
Comment

バグ報告ありがとうございます。返事が遅れて申し訳ございません。 これから調査しますのでよろしくお願いします。 Thank you for reporting the bug.

2013-10-11 07:07 Updated by: y-moriguchi
Comment

バグをフィックスし、Subversionにコミットしました。
I have fixed the bug and committed to the Subversion.

(イタリック体は出力結果です)
(Output is written in italic font.)
(sawkはjava -jar awkium.jarのエイリアスです。)
(sawk is an alias of 'java -jar awkium.jar')

$ sawk '/^ABC/ { print $0;}'
ABC123
ABC123
123ABC

$ sawk '/ABC/ { print $0;}'
ABC123
ABC123
123ABC
123ABC

$ sawk '/ABC$/ { print $0;}'
ABC123
123ABC
123ABC

$ sawk '/^ABC$/ { print $0;}'
ABC123
123ABC
ABC
ABC

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login