Hello
I have a string a variable length that looks like this
$string = "hello my * name is Rob * and * I am a very nice person * at least * I think * so"I need to split the string at the "*" character which comes before position x, where x = 30. In the example above:
$part1 = "hello my * name is Rob * and *"; $part2 = "I am a very nice person * at least * I think * so"
I suspect there must be some backwards regex in Perl. Any idea?
In reply to split string at variable position with matching by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |