Jason.Bourne
دوشنبه 16 دی 1387, 23:44 عصر
میخوام که توسط regex همه قسمتهای یک متن را انتخاب کنم. البته بجز یک کلمه مشخص.
مثلا در پاراگراف زیر، بجز کلمه "activity" ، همه پاراگراف انتخاب بشه.
Last account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computer
به عبارتی، حاصل کار بشود
Last account : 4 hours ago on this computerLast account : 4 hours ago on this computerLast account : 4 hours ago on this computerLast account : 4 hours ago on this computerLast account : 4 hours ago on this computer
برای درست کردن الگو (pattern)، مشکل دارم.
مثلا در پاراگراف زیر، بجز کلمه "activity" ، همه پاراگراف انتخاب بشه.
Last account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computerLast account activity: 4 hours ago on this computer
به عبارتی، حاصل کار بشود
Last account : 4 hours ago on this computerLast account : 4 hours ago on this computerLast account : 4 hours ago on this computerLast account : 4 hours ago on this computerLast account : 4 hours ago on this computer
برای درست کردن الگو (pattern)، مشکل دارم.