# \[Bug #1612\] StringScanner#matchedsize warn "use #matched\_size instead"

**URL:** <https://www.ruby-forum.com/t/bug-1612-stringscanner-matchedsize-warn-use-matched-size-instead/170042>\
**Category:** Development\
**Created:** [June 11, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/bug-1612-stringscanner-matchedsize-warn-use-matched-size-instead/170042 "2009-06-11T17:25:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [June 11, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/bug-1612-stringscanner-matchedsize-warn-use-matched-size-instead/170042/1 "2009-06-11T17:25:24Z")

</div>

Bug #1612: StringScanner#matchedsize warn “use #matched\_size instead”  
[http://redmine.ruby-lang.org/issues/show/1612](http://redmine.ruby-lang.org/issues/show/1612)

e$B5/I\<\<Te(B: okkez \_  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal  
e$B%+%F%4%je(B: ext, Target version: 1.9.2  
ruby -v: ruby 1.9.2dev (2009-05-12 trunk 23414) [i686-linux]

StringScanner#matchedsize  
e$B$O$=$m$=$m\>C$7$F$b$$$$$N$G$O$J$$$G$7$g$&$+!#e(B  
Ruby1.8.2 e$B$+$ie(B warning e$B$Ge(B obsolete  
e$B$G$"$k$3$H$r7Y9p$7$F$$$^$9!#e(B

---

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [June 17, 2009, 7:08am UTC](https://www.ruby-forum.com/t/bug-1612-stringscanner-matchedsize-warn-use-matched-size-instead/170042/2 "2009-06-17T07:08:13Z")

</div>

e$B%A%1%C%He(B #1612 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

## Applied in changeset r23721.

[http://redmine.ruby-lang.org/issues/show/1612](http://redmine.ruby-lang.org/issues/show/1612)
