Processed how?
#!/usr/bin/perl -l # http://perlmonks.org/?node_id=1139932 use strict; use warnings; my $in = 'text text {scope 4 text {scope 2 text {scope 1 text} scope 2 + text} scope 4 text {scope 3 text} scope 4 text } text text'; print $_ = $in; print while s/{[^{}]*}/PROCESSED/;
In reply to Re: Text parsing. Processing scopes and subscopes.
by Anonymous Monk
in thread Text parsing. Processing scopes and subscopes.
by Lana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |