עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

regular expression

Featured Replies

פורסם

מחפש להמיר מחרוזת dror ל- d*r*o*r

תודה

פורסם

באיזה שפה?

אתה יכול עקרונית לתפוס כל תו עם הסימן . (נקודה)

פורסם
  • מחבר

notepad++

or

excel

בעזרת find what ו- replace

פורסם

בהנחה שאני מבין מה שאתה רוצה מילולית (להמיר את המחרוזת הספציפית dror למחרוזת הספציפית d*r*o*r) אז:

find what: (d)(r)(o)(r)
replace with: \1\*\2\*\3\*\4

בnotepad++ ובהנחה שregular expression מסומן כמובן.

פורסם

תודה לך (למרות שלא אני פתחתי את הנושא ...)

פורסם

בהנחה שאני מבין מה שאתה רוצה מילולית (להמיר את המחרוזת הספציפית dror למחרוזת הספציפית d*r*o*r) אז:

find what: (d)(r)(o)(r)
replace with: \1\*\2\*\3\*\4

בnotepad++ ובהנחה שregular expression מסומן כמובן.

אם הוא היה רוצה להחליף את המחרוזת הספציפית אז לא צריך ביטויים רגולרים, כי אפשר פשוט להחליף את "dror" ב-"d*r*o*r" וזהו.

אפשר לעשות את זה באמצעות positive lookahead:

find: (.)(?=.)
replace: \1*

הביטוי הרגולרי מחפש כל תו (הסוגריים הראשונים) שיש אחריו תו נוסף (הסוגריים השניים).

פורסם
  • מחבר

שניצל, תודה על הערתך. היא אכן במקום

+

תודה על תשובתך

פורסם

הנה one liner בפרל:


$ echo dror | perl -pe 's/(\w\B)/$1\*/g'
d*r*o*r
$ echo eyal | perl -pe 's/(\w\B)/$1\*/g'
e*y*a*l

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.