Thread index() & reguläre Ausdrücke (15 answers)
Opened by Kalmuecke at 2007-02-28 16:28

sesth
 2007-03-01 12:54
#74695 #74695
User since
2005-02-01
181 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
In scalar context, each execution of m//g finds the next match, returning true if it matches, and false if there is no further match. The position after the last match can be read or set using the pos() function; see pos in the perlfunc manpage. A failed match normally resets the search position to the beginning of the string, but you can avoid that by adding the /c modifier (e.g. m//gc). Modifying the target string also resets the search position.

Siehe perlop
Gruß
Thomas

View full thread index() & reguläre Ausdrücke