Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julians/regex-workshop
https://github.com/julians/regex-workshop
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/julians/regex-workshop
- Owner: julians
- Created: 2013-12-17T15:11:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-17T15:16:34.000Z (about 11 years ago)
- Last Synced: 2024-11-30T06:48:06.488Z (about 1 month ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Kleiner RegEx-Workshop
## Suchen und Ersetzen im Editor:
**Textmate: ⌘+F** – im Fenster »Regular Expression« checken.
**Sublime Text: ⌘+⌥+F** – den Regular-Expression-Button unten links anklicken.
http://regexpal.com
```python
import repattern = re.compile(r";")
pattern.findall("hallo;zwei;drei")
>>>[';', ';']re.match(r";", "hallo;zwei;drei")
>>>
re.search(r";", "hallo;zwei;drei").group(0)
>>>';'
re.split(r";", "hallo;zwei;drei")
>>>['hallo', 'zwei', 'drei']
```