Soldato
- Joined
- 12 Apr 2004
- Posts
- 11,788
- Location
- Somewhere
I want to replace all instances of a certain character sequence, say A, that occur either at the start of a line or after a sequence of A beginning at the start of a line.
Using | and > as an example characters, this:
...should become this:
Can anyone help me? I'm useless with regexes
Using | and > as an example characters, this:
Code:
some|text|
|some text
||some more text
|||even more text
...should become this:
Code:
some|text| (these ones aren't replaced as they're not at the start of a line)
>some text
>>some more text
>>>even more text
Can anyone help me? I'm useless with regexes
Last edited: