So I'll have a program passing a record/file, in that record are some passed number such as specialnumber=9 specialword=foo or as in the case above "sacts=11:22:33=eacts" So if I could find the string in a file that starts with x and end with y, or starts with x and end with a space that would be good. The current code (in PHP) finds record that start with x and ends with y and then I do a string replace for x and y (or 'acts=' and '=eacts' in my php example) and I'm left with my value. Not award winning code but it's getting the job done. So I'm looking for the same in Perl, or I'm open to new Perl suggestions. Thanks!if(preg_match('/sacts=(.*)=eacts/i', $uscaption, $matches))
In reply to strings searches by kansaschuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |