دیروز داشتم روی یه پروژه کار میکردم ک برای انجام دادن یه مرحله نیاز به گرفتن یه لیست آی پی از کاربر بود. در واقع ما از کاربر یه فایل میگرفتیم ک باید شامل تعدادی آیپی آدرس برای انجام یه سری فرآیند های تست نفوذ میبود. حالا یه مشکلی که بهش برخوردیم این بود که اگه کاربر توی فایلش چیزی غیر آیپی وارد میکرد کل برنامه توی مرحله پینگ آیپی fail میشد و کرش میداد.
اینجا بود که Regex وارد کار شد. امروز میخوام بهتون توضیح بدم که چطور کار میکنه:)
دیروز داشتم روی یه پروژه کار میکردم ک برای انجام دادن یه مرحله نیاز به گرفتن یه لیست آی پی از کاربر بود. در واقع ما از کاربر یه فایل میگرفتیم ک باید شامل تعدادی آیپی آدرس برای انجام یه سری فرآیند های تست نفوذ میبود. حالا یه مشکلی که بهش برخوردیم این بود که اگه کاربر توی فایلش چیزی غیر آیپی وارد میکرد کل برنامه توی مرحله پینگ آیپی fail میشد و کرش میداد.
اینجا بود که Regex وارد کار شد. امروز میخوام بهتون توضیح بدم که چطور کار میکنه:)
Although some crypto traders have moved toward screaming as a coping mechanism, several mental health experts call this therapy a pseudoscience. The crypto community finds its way to engage in one or the other way and share its feelings with other fellow members. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. Today, we will address Telegram channels and how to use them for maximum benefit. Add up to 50 administrators The channel also called on people to turn out for illegal assemblies and listed the things that participants should bring along with them, showing prior planning was in the works for riots. The messages also incited people to hurl toxic gas bombs at police and MTR stations, he added.
from sg