Tíquete #32149

Issue of regular expression.

: 2013-09-30 13:56 Última Atualização: 2013-10-11 07:07

Relator:
Dono:
Tipo:
Estado:
Aberto [Owner assigned]
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum

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
Comentário

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

2013-10-11 07:07 Updated by: y-moriguchi
Comentário

バグをフィックスし、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

Editar

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